NavMenuItem Class

Represents a nav button in the left-hand navigation menu for the user.

Definition

Namespace: MobileTrack.Web.Components.Components
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class NavMenuItem : ComponentBase, 
	IHasNavigationManager
Inheritance
Object    ComponentBase    NavMenuItem
Implements
IHasNavigationManager

Constructors

NavMenuItemInitializes a new instance of the NavMenuItem class

Properties

ClickCallBack Callback to invoke when the button is clicked.
Color Color of the icon in the Button
CurrentUser The signed-in user.
Disabled Whether the button should be disabled. Default: .
Icon Icon to display inside the Button
Label Human-readable text in the Button
NavigationManager Dependency injected NavigationManager for navigating to different pages.
Note: in Blazor, navigation is done in a 'fake' manner so the entire page doesn't need to be reloaded.
If you want to make sure the page is reloaded, or if we're going somewhere outside the Blazor context,
ensure you set the parameter 'forceLoad' in method NavigateTo(String, Boolean, Boolean) to true.
UrlOnClick The URL the user goes to on click.

Methods

SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))

See Also