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 (10)
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.I18nText
This NuGet package allows you to localize texts in your Blazor app. |
|
Toolbelt.Blazor.SplitContainer
A Blazor component to create panes separated by a slidable splitter bar. |
|
Toolbelt.Blazor.FileDropZone
Surround an "input type=file" element by this Blazor component to making a zone that accepts drag and drops files. |
|
BlazingStory
The clone of "Storybook" for Blazor, a frontend workshop for building UI components and pages in isolation. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Toolbelt.Blazor.GetProperty.Script:
Repository | Stars |
---|---|
jsakamoto/Toolbelt.Blazor.I18nText
The class library that provides the ability to localize texts on your Blazor app!
|
|
jsakamoto/Toolbelt.Blazor.HotKeys2
This is a class library that provides configuration-centric keyboard shortcuts for your Blazor apps.
|
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