DeepWorks Studios Blazor Component Library

Demo user Administrator ยท Blazor Server Library 20261206222504-6e8ff32.dirty

DwsNavMenu

API Reference (NavMenu) API Reference (NavGroup) API Reference (NavLink) API Reference (NavDivider)

Navigation menu

Links and nested groups, with icons, tooltips and badges.

Task management3
Mail
Overview
Templates
Subgroup
External docs
Show Code
NavMenu.razor

<DwsNavMenu Name="NavMenuDemo_NavMenu01" Color="DwsColor.Accent">
    <DwsNavGroup Name="NavMenuDemo_NavGroup01" Title="Task management" Icon="@Icons.Solid.DiagramNext"
        BadgeText="3" Tooltip="Everything task related">
        <DwsNavLink Name="NavMenuDemo_NavGroup01_Link01" Href="navmenu" Title="Task pool" Icon="@Icons.BS.Line" Tooltip="Task pool" />
        <DwsNavLink Name="NavMenuDemo_NavGroup01_Link02" Title="My tasks" Icon="@Icons.BS.PersonWorkspace" Href="/" BadgeText="5" />
    </DwsNavGroup>
    <DwsNavGroup Name="NavMenuDemo_NavGroup02" Title="Mail" Icon="@Icons.BS.Voicemail">
        <DwsNavLink Name="NavMenuDemo_NavGroup02_Link01" Href="navmenu" Title="Overview" Tooltip="Mail overview" />
        <DwsNavLink Name="NavMenuDemo_NavGroup02_Link02" Title="Templates" Href="/" ComponentNameSpace="predefinitions" />
        <DwsNavGroup Name="NavMenuDemo_SubNavGroup01" Title="Subgroup" Icon="@Icons.BS.People">
            <DwsNavLink Name="NavMenuDemo_SubNavGroup01_Link01" Href="navmenu" Title="Nested link" />
        </DwsNavGroup>
    </DwsNavGroup>
    <DwsNavLink Name="NavMenuDemo_NavLink01" Title="External docs" Href="https://example.com" Target="_blank" Icon="@Icons.BS.PersonBadge" />
</DwsNavMenu>
NavMenu.razor.cs
// This navigation demo is configured directly in Razor markup.

Search

Debounced, highlighted search with a result count and clear button.

Task management
Show Code
NavMenu.razor

<DwsNavMenu Name="NavMenuDemo_SearchMenu" EnableSearch="true" EnableSearchHighlight="true"
    ShowSearchResultCount="true" SearchDebounceMilliseconds="300" SearchPlaceholder="Search navigation...">
    <DwsNavGroup Name="NavMenuDemo_SearchGroup01" Title="Task management" InitiallyExpanded="true">
        <DwsNavLink Name="NavMenuDemo_SearchGroup01_Link01" Href="navmenu" Title="Task pool" />
        <DwsNavLink Name="NavMenuDemo_SearchGroup01_Link02" Href="navmenu" Title="My tasks" />
    </DwsNavGroup>
    <DwsNavGroup Name="NavMenuDemo_SearchGroup02" Title="Mail">
        <DwsNavLink Name="NavMenuDemo_SearchGroup02_Link01" Href="navmenu" Title="Overview" />
        <DwsNavLink Name="NavMenuDemo_SearchGroup02_Link02" Href="navmenu" Title="Templates" Tags="@(new[] { "predefined", "reusable" })" />
    </DwsNavGroup>
</DwsNavMenu>
NavMenu.razor.cs
// This navigation demo is configured directly in Razor markup.

Permissions by namespace

ApplicationNameSpaces sets the enabled and visible state of every link whose RelevantNameSpace matches a key. The admin link is hidden.

Show Code
NavMenu.razor

<DwsNavMenu Name="NavMenuDemo_PermissionMenu" ApplicationNameSpaces="@_applicationNameSpaces">
    <DwsNavLink Name="NavMenuDemo_Permission_Allowed" Href="navmenu" Title="Reports" RelevantNameSpace="reports" />
    <DwsNavLink Name="NavMenuDemo_Permission_Denied" Href="navmenu" Title="Admin area (hidden)" RelevantNameSpace="admin" />
</DwsNavMenu>
NavMenu.razor.cs

private readonly Dictionary<string, (bool enabled, bool visible)> _applicationNameSpaces = new()
{
    ["reports"] = (enabled: true, visible: true),
    ["admin"] = (enabled: false, visible: false),
};

Roles

AuthorizeLink receives the link's Roles and decides whether the link is shown. The current user has the staff role only, so the billing link is hidden.

Show Code
NavMenu.razor

<DwsNavMenu Name="NavMenuDemo_RoleMenu">
    <DwsNavLink Name="NavMenuDemo_Role_Staff" Href="navmenu" Title="Staff area" Roles="@_currentUserRoles"
        AuthorizeLink="@(roles => roles?.Contains("staff") == true)" />
    <DwsNavLink Name="NavMenuDemo_Permission_Role" Href="navmenu" Title="Billing (finance role only, hidden)" Roles="@_currentUserRoles"
        AuthorizeLink="@(roles => roles?.Contains("finance") == true)" />
</DwsNavMenu>
NavMenu.razor.cs

private readonly List<string> _currentUserRoles = new() { "staff" }; // no "finance" role -> the billing link stays hidden

Styling and orientation

Dense spacing, borders, rounding, background color and horizontal orientation.

Workspace
Home
Settings
Show Code
NavMenu.razor

<DwsNavMenu Name="NavMenuDemo_StylingMenu" Title="Workspace" Dense="true" Bordered="true" Rounded="true"
    BackgroundColor="DwsColor.Light" Orientation="DwsLayoutOrientation.Horizontal">
    <DwsNavLink Name="NavMenuDemo_StylingLink01" Href="navmenu" Title="Home" Icon="@Icons.BS.House" />
    <DwsNavLink Name="NavMenuDemo_StylingLink02" Href="navmenu" Title="Settings" Icon="@Icons.BS.Gear" />
</DwsNavMenu>
NavMenu.razor.cs
// This navigation demo is configured directly in Razor markup.

Compact icon rail

CompactMode collapses the menu into an icon-only rail; the titles move into tooltips.

Home
Settings
Show Code
NavMenu.razor

<DwsPaper Name="NavMenuDemo_Paper06" Width="80">
    <DwsNavMenu Name="NavMenuDemo_CompactMenu" CompactMode="true">
        <DwsNavLink Name="NavMenuDemo_CompactLink01" Href="navmenu" Title="Home" Icon="@Icons.BS.House" Tooltip="Home" />
        <DwsNavLink Name="NavMenuDemo_CompactLink02" Href="navmenu" Title="Settings" Icon="@Icons.BS.Gear" Tooltip="Settings" />
    </DwsNavMenu>
</DwsPaper>
NavMenu.razor.cs
// This navigation demo is configured directly in Razor markup.

Dividers

DwsNavDivider separates groups of items, with an optional label.

Show Code
NavMenu.razor

<DwsNavMenu Name="NavMenuDemo_DividerMenu">
    <DwsNavLink Name="NavMenuDemo_BeforeDivider" Href="navmenu" Title="Before the divider" />
    <DwsNavDivider Name="NavMenuDemo_Divider01" Label="More" />
    <DwsNavLink Name="NavMenuDemo_AfterDivider" Href="navmenu" Title="After the divider" />
</DwsNavMenu>
NavMenu.razor.cs
// This navigation demo is configured directly in Razor markup.

Interface-Description NavMenu

Name Typ Parameters Description
ExpandAllAsync Task Expands every DwsNavGroup in the menu.
CollapseAllAsync Task Collapses every DwsNavGroup in the menu.
ResetSelectionAsync Task Clears the current selection.
ExpandToActiveRouteAsync Task<bool> bool collapseOthers Opens the groups containing the link of the current route and scrolls it into view; false when no link matches.
ExportToJson string Data-driven mode only: serializes Items to JSON.
ImportFromJsonAsync Task string json Data-driven mode only: replaces Items from JSON, raising ItemsChanged.
Name Typ Default Description
ChildContent RenderFragment? null Composition-mode content (nested DwsNavLink/DwsNavGroup markup). Ignored when Items is set.
Items IEnumerable<DwsNavMenuItemData>? null Switches to data-driven rendering: a tree of items instead of ChildContent. Required for EnableVirtualization and JSON export/import.
ItemTemplate RenderFragment<DwsNavMenuItemData>? null Data-driven mode only: fully replaces the rendering of a leaf item.
GroupTemplate RenderFragment<DwsNavMenuItemData>? null Data-driven mode only: fully replaces the rendering of a group item.
EnableVirtualization bool false Data-driven mode only: virtualizes the top-level Items list via DwsVirtualize. Lists of 50 top-level items or fewer render without virtualization. Place the menu in a height-bounded scrolling ancestor (max-height plus overflow: auto), otherwise the page is the scroll area. While virtualized, top-level items keep the sorted order of Items and emit no inline CSS order.
VirtualizationItemSize float 40 Estimated row height (px) used by EnableVirtualization.
Color DwsColor DwsColor.Primary The color of the selected list item.
DisableGutters bool false Disables the edge padding on list items.
SelectedItem DwsNavLink default! The selected navigation link item.
ApplicationNameSpaces Dictionary<string, (bool enabled, bool visible)> new() Application-level enabled/visible state per RelevantNameSpace.
UserDefinedNameSpaces Dictionary<string, (bool enabled, bool visible)> new() User-level enabled/visible state per RelevantNameSpace; overrides ApplicationNameSpaces.
SelectedValue object default! The value of the selected item (single-selection mode).
SelectionMode DwsSelectionMode Single Single (SelectedValue) or Multiple (SelectedValues).
SelectedValues IEnumerable<object>? null Selected values in Multiple selection mode. One-way seed - observe changes via SelectedValuesChanged.
AutoFocus bool true Enables automatic focus/selection based on the current route.
ExpandToActiveRoute bool true Opens the groups containing the link of the current route on the first render and after each tracked navigation. False keeps the highlight only.
CollapseOtherGroupsOnNavigation bool false With ExpandToActiveRoute: a navigation also closes every group outside the active branch.
NativeGroupHeaders bool true Group headers render as native <button> elements. False restores div role="button" for all groups; DwsNavGroup.NativeHeader overrides per group.
EnableSearch bool false Shows the built-in search box.
EnableSearchHighlight bool false Highlights matched items while searching.
HideClearSearchButton bool false Hides the clear-search button.
StickySearch bool false Pins the search box to the top of the menu.
SearchQueryParameter string? {Name}-search Static SSR: the query parameter the search GET form submits its term in; the menu filters its links by the address.
SearchPlaceholder string? null Overrides the localized default search placeholder.
SearchDebounceMilliseconds int 250 Debounce applied to the built-in search box.
ShowSearchResultCount bool false Shows a "N results" label while searching.
SearchFilter Func<DwsNavLink, string, bool>? null Overrides how a link is judged a search match. Ignored while ExternalSearchProvider is set.
ExternalSearchProvider Func<string, Task<IEnumerable<object>>>? null Resolves search results from a host-supplied source (e.g. a backend API) instead of the local match.
NoResultsText string? null Overrides the localized default empty-search-results text.
EmptyStateTemplate RenderFragment? null Fully replaces the empty-search-results markup.
MaxNestingDepth int? null Optional cap on DwsNavGroup nesting depth; logs a warning (non-blocking) when exceeded.
Title string? null Main navigation title shown above the menu content.
NavTitleTemplate RenderFragment? null Fully replaces the Title markup.
Orientation DwsLayoutOrientation Vertical Vertical or Horizontal layout.
Dense bool false Reduces vertical spacing between items.
Margin int? null Outer margin in pixels.
BackgroundColor DwsColor Undefined Background color.
Bordered bool false Adds a border around the menu.
BorderStyle DwsBorderStyle Solid Border style when Bordered is true.
Rounded bool false Rounds the menu's corners.
CompactMode bool false Collapses the menu into an icon-only rail; titles fall back to tooltips.
PersistState bool false Persists group expand/collapse state to local storage under StorageKey.
StorageKey string? null Storage key used by PersistState. Falls back to "dws-nav-menu.{Name}".
Name Typ Description
SelectedItemChanged EventCallback<DwsNavLink> Fired when the selected item changes.
SelectedValueChanged EventCallback<object> Fired when the selected value changes (single-selection mode).
SelectedValuesChanged EventCallback<IEnumerable<object>> Fired when the selection changes (Multiple selection mode).
ItemsChanged EventCallback<IEnumerable<DwsNavMenuItemData>> Fired after ImportFromJsonAsync replaces Items - supports @bind-Items.
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.

Interface-Description NavGroup

Name Typ Parameters Description
ExpandAsync Task Expands the group (goes through OnBeforeToggle).
CollapseAsync Task Collapses the group (goes through OnBeforeToggle).
Name Typ Default Description
DisableItem bool false Whether the group is disabled.
DisableRipple bool false Disables the click ripple animation.
DisableGutters bool false Disables the edge padding.
ChildContent RenderFragment? null The group's nested links/groups.
Icon string string.Empty The group's icon.
IconColor DwsColor Undefined The icon's color.
IconSize DwsSize Medium The icon's size.
ExpandedIcon string? null Overrides Icon while expanded.
CollapsedIcon string? null Overrides Icon while collapsed.
AdornmentColor DwsColor Undefined The expand/collapse chevron's color.
ExpandLessIcon string Icons.BS.ChevronUp Chevron icon while expanded.
ExpandMoreIcon string Icons.BS.ChevronDown Chevron icon while collapsed.
Title string string.Empty The group's title.
InitiallyExpanded bool false Whether the group starts expanded.
RelevantNameSpace string string.Empty Namespace key into DwsNavMenu.ApplicationNameSpaces/UserDefinedNameSpaces.
Roles IEnumerable<string>? null Roles passed to AuthorizeGroup.
AuthorizeGroup Func<IEnumerable<string>?, bool>? null Host-supplied authorization check; returning false hides and disables the group.
Tooltip string string.Empty Tooltip text shown on the group header.
TooltipPosition DwsTooltipPosition Top Tooltip position.
BadgeText string? null Badge rendered at the end of the group header.
BadgeColor DwsColor Primary The badge's color.
ItemTemplate RenderFragment<DwsNavGroup>? null Fully replaces the icon/title markup.
ArrowTemplate RenderFragment<bool>? null Fully replaces the expand/collapse chevron. Receives the current Expanded state.
OnBeforeToggle Func<bool, Task<bool>>? null Gate invoked with the proposed new Expanded state before a user-initiated toggle; return false to cancel.
AllowReorder bool false Makes direct children (links and nested groups) drag-and-drop reorderable among themselves.
SortOrder int? null Applied as CSS order among siblings; also what drag-and-drop reordering writes back to.
Metadata Dictionary<string, object>? null Free-form data matched by DwsNavMenu's search.
Tags IEnumerable<string>? null Tags matched by DwsNavMenu's search.
Description string? null Description matched by DwsNavMenu's search.
LazyLoadChildren bool false Defers rendering ChildContent until first expanded. Trade-off: not-yet-expanded children are invisible to global search.
AnimationSpeed DwsAnimationSpeed Normal Speed of the hover/expand transition.
NativeHeader bool? null Header as a native <button> (true) or div role="button" (false). Null follows DwsNavMenu.NativeGroupHeaders, except with an ItemTemplate (div). Draggable headers always stay a div.
Name Typ Description
ExpandedChanged EventCallback<bool> Fired when the expanded state changes.
OnClick EventCallback<MouseEventArgs> Fired on click.
OnExpand EventCallback Fired when the group expands.
OnCollapse EventCallback Fired when the group collapses.
OnContextMenu EventCallback<MouseEventArgs> Fired on right-click (default browser context menu is suppressed once this has a delegate) - wire your own context menu here.
SortOrderChanged EventCallback<int> Fired when drag-and-drop reordering changes SortOrder.
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.

Interface-Description NavLink

Name Typ Default Description
DisableRipple bool false Disables the click ripple animation.
DisableGutters bool false Disables the edge padding.
Title string string.Empty The text to display.
Match NavLinkMatch All How Href is compared with the address to mark the link as the current page (aria-current="page" and ActiveClass), like Blazor's NavLink. Prefix also matches pages below it, on whole segments. Applies outside a DwsNavMenu and, under static SSR, to every link.
ActiveClass string "active" Class added while the link is the current page or the selected item, so CSS written for Blazor's NavLink (a.active) keeps working. Empty for none.
Value object default! The link's value, used for selection.
Href string? null Link target. Omit for an action-only item (rendered with role="button").
RelevantNameSpace string string.Empty Namespace key into DwsNavMenu.ApplicationNameSpaces/UserDefinedNameSpaces.
ForceLoad bool false Forces a full browser navigation outside the router.
Icon string string.Empty The link's icon.
IconColor DwsColor Undefined The icon's color.
IconSize DwsSize Medium The icon's size.
SelectedIcon string? null Overrides Icon while selected.
DisabledIcon string? null Overrides Icon while disabled.
Tooltip string string.Empty Tooltip text.
TooltipPosition DwsTooltipPosition Top Tooltip position.
Target string? null Anchor target (e.g. "_blank"). "_blank" without an explicit Rel gets "noopener noreferrer" automatically.
Rel string? null Anchor rel attribute.
BadgeText string? null Badge rendered at the end of the link.
BadgeColor DwsColor Primary The badge's color.
Roles IEnumerable<string>? null Roles passed to AuthorizeLink.
AuthorizeLink Func<IEnumerable<string>?, bool>? null Host-supplied authorization check; returning false hides and disables the link.
ItemTemplate RenderFragment<DwsNavLink>? null Fully replaces the icon/title/badge markup.
SortOrder int? null Applied as CSS order among siblings; also what drag-and-drop reordering writes back to.
Metadata Dictionary<string, object>? null Free-form data matched by DwsNavMenu's search.
Tags IEnumerable<string>? null Tags matched by DwsNavMenu's search.
Description string? null Description matched by DwsNavMenu's search.
AnimationSpeed DwsAnimationSpeed Normal Speed of the hover transition.
Name Typ Description
OnClick EventCallback<MouseEventArgs> Fired on click/activation.
OnKeyDown EventCallback<KeyboardEventArgs> Fired on key down.
OnMouseEnter EventCallback<MouseEventArgs> Fired on hover.
OnFocus EventCallback<FocusEventArgs> Fired on focus.
OnBlur EventCallback<FocusEventArgs> Fired on blur.
SortOrderChanged EventCallback<int> Fired when drag-and-drop reordering changes SortOrder.
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.

Interface-Description NavDivider

Name Typ Default Description
Label string? null Optional section label shown on the divider.
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.
An error has occurred. This app may no longer respond until reloaded.