Table of Contents

Class MvvmKeyNavLink

Namespace
Blazing.Mvvm.Components.Routing
Assembly
Blazing.Mvvm.dll

A Blazor component that renders an anchor tag and automatically toggles its 'active' CSS class based on whether its 'href' matches the current URI. Navigation is performed using a navigation key.

public sealed class MvvmKeyNavLink : MvvmNavLinkBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance

Implements

Inherited Members

Properties

Gets or sets the key to use for keyed navigation. This parameter is required.

[Parameter]
[EditorRequired]
public required object NavigationKey { get; set; }

Property Value

object

Methods

Resolves the navigation href for the anchor tag using the specified navigation key.

protected override string ResolveHref()

Returns

string

The absolute URI string for navigation.

Exceptions

InvalidOperationException

Thrown if NavigationKey is null.