Toolbelt.Blazor.GetProperty.Script 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Toolbelt.Blazor.GetProperty.Script --version 1.1.0                
NuGet\Install-Package Toolbelt.Blazor.GetProperty.Script -Version 1.1.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.1.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.1.0                
#r "nuget: Toolbelt.Blazor.GetProperty.Script, 1.1.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.1.0

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

Toolbelt.Blazor.SpeechSynthesis

SpeechSynthesis API access for your Blazor apps.

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.
Version Downloads Last updated
1.2.0 201,888 11/16/2023
1.1.0 278 10/8/2023
1.0.0 45,815 7/4/2023

v.1.1.0
- Reducing the size of the script.


To see all the change logs, please visit the following URL.
- https://github.com/jsakamoto/Toolbelt.Blazor.GetProperty.Script/blob/main/RELEASE-NOTES.txt