BracketShow / BlazorNavigationManagerExtensions

Blazor Navigation Manager Extensions is a simple set of extensions for the Navigation Manager

Home Page:https://bracketshow.github.io/BlazorNavigationManagerExtensions/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlazorNavigationManagerExtensions

Blazor Navigation Manager Extensions is a simple set of extensions for the Navigation Manager

Build & Test Main

Nuget

Installation

You can install the package with the Nuget Package Manager by searching for BracketShow.BlazorNavigationManagerExtensions.

You can also install it with Powershell by running the following command:

Install-Package BracketShow.BlazorNavigationManagerExtensions

Or by using the dotnet CLI with the following command:

dotnet add package BracketShow.BlazorNavigationManagerExtensions

Usage

To use any of the extensions, add the following using statement where the extension is required:

using BlazorNavigationManagerExtensions;

Currently Available Extensions

NavigateTo With Query String parameters

NavigateTo(this NavigationManager navManager, string uri, IDictionary<string, string> queryString, bool forceLoad = false)

This extension simply allows to navigate to a page with query string parameters. The KeyValuePair will be made of the name of the query string parameter and its value.

Reload

Reload(this NavigationManager navManager)

This extension reloads the application to the current URI by using the forceLoad flag to force the page to reload from the server.

About

Blazor Navigation Manager Extensions is a simple set of extensions for the Navigation Manager

https://bracketshow.github.io/BlazorNavigationManagerExtensions/

License:MIT License


Languages

Language:C# 100.0%