Toolbelt.Blazor.GetProperty.Script 1.2.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.I18nText
This NuGet package allows you to localize texts in your Blazor app.
3
Toolbelt.Blazor.I18nText
This NuGet package allows you to localize texts in your Blazor app.
7
Toolbelt.Blazor.I18nText
This NuGet package allows you to localize texts in your Blazor app.
9
Toolbelt.Blazor.I18nText
This NuGet package allows you to localize texts in your Blazor app.
14

v.1.2.0 - Initialize the "getProperty" method immediately after the module is loaded without waiting to invoke the beforeStart function. 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.

Version Downloads Last updated
1.3.0 5 03/07/2025
1.2.0 13 12/02/2024
1.1.0 11 12/09/2024
1.0.0 13 12/09/2024