Toolbelt.Blazor.GetProperty.Script 1.3.0

Blazor GetProperty Script NuGet Package

Summary

Once you've installed this NuGet package to your Blazor application,

dotnet add package Toolbelt.Blazor.GetProperty.Script

you can use the Toolbelt.Blazor.getProperty global JavaScript function in your Blazor application. The Toolbelt.Blazor.getProperty allows you to retrieve any global property values specified by dot-separated property path string without any additional installations and configurations, like below.

@inject IJSRuntime JSRuntime

@code
{
  protected override async Task OnAfterRenderAsync(bool firstRender)
  {
    if (firstRender)
    {
      var onLine = await JSRuntime.InvokeAsync<bool>("Toolbelt.Blazor.getProperty", "navigator.onLine");
    }
  }
}

Release Note

Release notes

License

Mozilla Public License Version 2.0

Showing the top 20 packages that depend on Toolbelt.Blazor.GetProperty.Script.

Packages Downloads
Toolbelt.Blazor.HotKeys2
Configuration-centric keyboard shortcuts for your Blazor apps.
3
Toolbelt.Blazor.HotKeys2
Configuration-centric keyboard shortcuts for your Blazor apps.
2

v.1.3.0 - Enhance: Add .net9.0 to the list of supported frameworks. - Fix: It didn't work correctly when the .NET SDK version is 10. To see all the change logs, please visit the following URL. - https://github.com/jsakamoto/Toolbelt.Blazor.GetProperty.Script/blob/main/RELEASE-NOTES.txt

.NET 6.0

  • No dependencies.

.NET 7.0

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

Version Downloads Last updated
1.3.0 2 3/6/2025
1.2.0 2 3/6/2025
1.1.0 2 3/6/2025
1.0.0 2 3/6/2025