Toolbelt.Blazor.GetProperty.Script 1.2.0

dotnet add package Toolbelt.Blazor.GetProperty.Script --version 1.2.0
NuGet\Install-Package Toolbelt.Blazor.GetProperty.Script -Version 1.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Toolbelt.Blazor.GetProperty.Script" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Toolbelt.Blazor.GetProperty.Script --version 1.2.0
#r "nuget: Toolbelt.Blazor.GetProperty.Script, 1.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Toolbelt.Blazor.GetProperty.Script as a Cake Addin
#addin nuget:?package=Toolbelt.Blazor.GetProperty.Script&version=1.2.0

// Install Toolbelt.Blazor.GetProperty.Script as a Cake Tool
#tool nuget:?package=Toolbelt.Blazor.GetProperty.Script&version=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

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Toolbelt.Blazor.GetProperty.Script:

Package Downloads
Toolbelt.Blazor.HotKeys2

Configuration-centric keyboard shortcuts for your Blazor apps.

Toolbelt.Blazor.SpeechSynthesis

SpeechSynthesis API access for your Blazor apps.

BlazingStory

The clone of "Storybook" for Blazor, a frontend workshop for building UI components and pages in isolation.

Toolbelt.Blazor.SpeechRecognition

SpeechRecognition API access for your Blazor apps.

Toolbelt.Blazor.Gamepad

gamepad API access for your Blazor apps.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 40,740 11/16/2023
1.1.0 251 10/8/2023
1.0.0 31,726 7/4/2023

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