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
<PackageReference Include="Toolbelt.Blazor.GetProperty.Script" Version="1.2.0" />
paket add Toolbelt.Blazor.GetProperty.Script --version 1.2.0
#r "nuget: Toolbelt.Blazor.GetProperty.Script, 1.2.0"
// 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
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
License
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.
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