DeepWorks Studios Blazor Component Library

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

DwsList

API Reference DwsList
API Reference DwsListItem
API Reference DwsListSubheader / DwsListDivider

A first list

A bordered list with a Title, icons in front of the items and ItemSeparator lines between them. Every list, item, subheader and divider carries its own Name, which makes each of them selectable in permission-selection mode.

Diagram types
Next
Predecessor
Project
Successor
No items.
Show Code
List.razor

<DwsPaper Name="ListDemo_Basic_Paper01" Width="280">
    <DwsList T="string" Name="ListDemo_Basic_List01" Title="Diagram types" Border="true" ItemSeparator="true">
        <DwsListItem Name="ListDemo_Basic_List01_Item01" Text="Next" Icon="@Icons.Solid.DiagramNext" />
        <DwsListItem Name="ListDemo_Basic_List01_Item02" Text="Predecessor" Icon="@Icons.Solid.DiagramPredecessor" />
        <DwsListItem Name="ListDemo_Basic_List01_Item03" Text="Project" Icon="@Icons.Solid.DiagramProject" IconColor="DwsColor.Primary" />
        <DwsListItem Name="ListDemo_Basic_List01_Item04" Text="Successor" Icon="@Icons.Solid.DiagramSuccessor" />
    </DwsList>
</DwsPaper>
List.razor.cs

// Markup only: DwsListItem takes T from its DwsList, so T="string" is only needed on the list.

Structuring a list

Use TitleContent when your own markup should stand above the items instead of a plain Title. ShowNumbers counts the items, DwsListSubheader inserts headings, and DwsListDivider draws a line that can carry a text.

My morning
Go for a run
Take a shower
Read the news
Walk the dog
No items.
Show Code
List.razor

<DwsPaper Name="ListDemo_Basic_Paper02" Width="280">
    <DwsList T="string" Name="ListDemo_Basic_List02" ShowNumbers="true">
        <TitleContent>
            <span><DwsIcon Name="ListDemo_Basic_List02_TitleIcon" Icon="@Icons.BS.Sunrise" Color="DwsColor.Text" Class="me-2" />My morning</span>
        </TitleContent>
        <ChildContent>
            <DwsListSubheader Name="ListDemo_Basic_List02_Subheader01" Text="Before breakfast" />
            <DwsListItem Name="ListDemo_Basic_List02_Item01" Text="Go for a run" Icon="@Icons.Solid.PersonRunning" />
            <DwsListItem Name="ListDemo_Basic_List02_Item02" Text="Take a shower" Icon="@Icons.Solid.Shower" />
            <DwsListDivider Name="ListDemo_Basic_List02_Divider01" Text="Coffee" />
            <DwsListSubheader Name="ListDemo_Basic_List02_Subheader02" Text="After breakfast" />
            <DwsListItem Name="ListDemo_Basic_List02_Item03" Text="Read the news" Icon="@Icons.BS.Newspaper" />
            <DwsListItem Name="ListDemo_Basic_List02_Item04" Text="Walk the dog" Icon="@Icons.Solid.Dog" />
        </ChildContent>
    </DwsList>
</DwsPaper>
List.razor.cs

// Markup only: DwsListItem takes T from its DwsList, so T="string" is only needed on the list.

Disabling the whole list

Set Disabled on the list and every item is greyed out - Clickable makes no difference.

Mailbox (disabled)
Inbox
Sent
Trash
No items.
Show Code
List.razor

<DwsPaper Name="ListDemo_Basic_Paper03" Width="280">
    <DwsList T="string" Name="ListDemo_Basic_List03" Title="Mailbox (disabled)" Border="true" Disabled="true" Clickable="true">
        <DwsListItem Name="ListDemo_Basic_List03_Item01" Text="Inbox" Value="@("inbox")" Icon="@Icons.Solid.Inbox" />
        <DwsListItem Name="ListDemo_Basic_List03_Item02" Text="Sent" Value="@("sent")" Icon="@Icons.Solid.PaperPlane" />
        <DwsListDivider Name="ListDemo_Basic_List03_Divider01" />
        <DwsListItem Name="ListDemo_Basic_List03_Item03" Text="Trash" Value="@("trash")" Icon="@Icons.Solid.Trash" />
    </DwsList>
</DwsPaper>
List.razor.cs

// Markup only: DwsListItem takes T from its DwsList, so T="string" is only needed on the list.

Group headers

With GroupSelector, data-bound items are placed under group headers that stick to the top while their items scroll past. GroupHeaderTemplate lets you design those headers.

Grouped by category
Apple
Lemon
Carrot
Chili pepper
Cheese
Eggs
Ice cream
Salmon
Chicken leg
Bacon
Bread
Rice
Flour
Pizza
Show Code
List.razor

<DwsList T="Food" Name="ListDemo_Group_List01" Title="Grouped by category" Border="true" Clickable="true" MaxHeight="360"
         Items="_foods" TextSelector="@(f => f.Name)" IconSelector="@(f => f.Icon)" GroupSelector="@(f => f.Category)">
    <GroupHeaderTemplate>
        <span><DwsIcon Name="@($"ListDemo_Group_List01_HeaderIcon_{context.Key}")" Icon="@Icons.BS.Tag" Color="DwsColor.Text" Class="me-2" />@context.Key</span>
        <small>@context.Count @(context.Count == 1 ? "item" : "items")</small>
    </GroupHeaderTemplate>
</DwsList>
List.razor.cs

public sealed record Food(string Name, string Category, string Icon, int Calories, bool InStock);

private readonly List<Food> _foods =
[
    new("Apple", "Fruit and vegetables", Icons.Solid.AppleWhole, 52, true),
    new("Cheese", "Dairy and eggs", Icons.Solid.Cheese, 402, true),
    new("Salmon", "Meat and fish", Icons.Solid.Fish, 208, true),
    new("Bread", "Bakery and pantry", Icons.Solid.BreadSlice, 265, true),
    new("Lemon", "Fruit and vegetables", Icons.Regular.Lemon, 29, true),
    new("Eggs", "Dairy and eggs", Icons.BS.EggFill, 155, true),
    new("Chicken leg", "Meat and fish", Icons.Solid.DrumstickBite, 184, true),
    new("Rice", "Bakery and pantry", Icons.Solid.BowlRice, 130, true),
    new("Carrot", "Fruit and vegetables", Icons.Solid.Carrot, 41, true),
    new("Ice cream", "Dairy and eggs", Icons.Solid.IceCream, 207, false),
    new("Bacon", "Meat and fish", Icons.Solid.Bacon, 541, false),
    new("Flour", "Bakery and pantry", Icons.Solid.JarWheat, 364, true),
    new("Chili pepper", "Fruit and vegetables", Icons.Solid.PepperHot, 40, false),
    new("Pizza", "Bakery and pantry", Icons.Solid.PizzaSlice, 266, false),
];

Interface-Description DwsList

Name Typ Default Description
IsDataBound bool false Whether the items come from Items or LoadData.
IsLoading bool false Whether Loading is set or LoadData runs.
CurrentSelectedValue DwsBoxedValue<T>? null The selected value (the one selected last).
CurrentSelectedValues IReadOnlyList<T> [] The selected values in the order they were selected.
CurrentSelectedItem DwsListItem<T>? null The rendered item of the selected value.
CurrentSearchText string string.Empty The search text currently applied.
CurrentSortDirection DwsSortDirection DwsSortDirection.None The sort order currently applied.
CurrentPage int 0 The page shown, starting at 0.
PageCount int 1 Number of pages; 1 without paging.
TotalItemCount int 0 Items LoadData reported, or top-level items matching the search.
DrillPath IReadOnlyList<T> [] Drill-down: the opened items, outermost first.
Name Typ Parameters Description
SetCurrentValue Task DwsBoxedValue<T>? value Selects a value (null clears the selection) and scrolls it into view.
SetCurrentItem Task DwsListItem<T> item Selects an item and scrolls it into view.
ScrollToCurrentItemAsync Task Scrolls the selection into view, switching page, opening parents or the drill-down level, or scrolling a virtualized list as needed.
ScrollToValueAsync Task T value Scrolls the first item with the value into view.
ScrollToItemAsync Task DwsListItem<T> item Scrolls an item into view.
RefreshSelectedItem Task Re-applies the selection to the items and reports SelectedItem again.
ExpandAllAsync Task Expands every nested item (with ChildrenLoader: those whose children are loaded).
ReloadChildrenAsync Task T item With ChildrenLoader: loads the children of the item with this value again (right away when it is open).
SetExpandedAsync Task T item, bool expanded Opens or closes the nested items of the item with this value (data-bound, or a markup parent with a Value).
CollapseAllAsync Task Collapses every nested item.
SelectAllAsync Task Selects every selectable item matching the search (MultiSelect).
ClearSelectionAsync Task Clears the selection.
ReloadAsync Task Runs LoadData again with the current search, sort order and page.
DrillInAsync Task T item Drill-down: opens the children of the item with this value (markup parents need a Value), with its ancestors.
DrillUpAsync Task Drill-down: goes back to the parent level.
FocusAsync ValueTask Moves focus into the list, to the selected or the first item.
Name Typ Default Description
ChildContent RenderFragment? null The DwsListItem, DwsListSubheader and DwsListDivider children. Ignored when Items or LoadData is set.
Items IEnumerable<T>? null Data-bound items; each becomes a DwsListItem. Needed for sorting, grouping, paging, virtualization, reordering and drill-down.
LoadData Func<DwsListLoadDataArgs, Task<DwsListLoadDataResult<T>>>? null Loads items on demand with the search text, sort order and range (page or virtualized window). Takes precedence over Items.
ItemTemplate RenderFragment<DwsListItemContext<T>>? null Custom content of each data-bound item (context: Item, Node, Number, Text, IsSelected, IsDisabled, SearchText, List).
TextSelector Func<T, string>? null Text of a data-bound item, also used by search, type-ahead and the default sort. Default: ToString().
IconSelector Func<T, string?>? null Icon of a data-bound item.
DisabledSelector Func<T, bool>? null Returns true for data-bound items that cannot be clicked, selected or reordered.
ItemClassSelector Func<T, string?>? null Extra CSS classes for the row of a data-bound item.
ItemStyleSelector Func<T, string?>? null Extra inline style for the row of a data-bound item.
ChildrenSelector Func<T, IEnumerable<T>?>? null Children of a data-bound item, shown as a nested level.
ChildrenLoader Func<DwsListNode<T>, Task<IEnumerable<T>>>? null Loads an item's children the first time it is opened (instead of ChildrenSelector); kept while the item stays in Items. Search, expand-all and select-all see loaded children only.
HasChildrenSelector Func<T, bool>? null With ChildrenLoader: which items have children before they are loaded (they get a chevron).
DefaultExpandedDepth int 0 Data-bound items above this depth start expanded (1 opens the top level); applies when an item first appears.
SelectableParents bool false Items with nested items can be selected too: a click selects, the chevron (or Arrow Right/Left) opens and closes.
NestedMode DwsListNestedMode DwsListNestedMode.Inline Inline opens children below their parent; DrillDown shows one level at a time with a back button (ChildrenSelector levels or markup NestedLists).
GroupSelector Func<T, string?>? null Groups the top-level data-bound items under headers with the returned key.
GroupHeaderTemplate RenderFragment<DwsListGroupContext<T>>? null Custom group header (context: Key, Items, Count).
StickyGroupHeaders bool true Keeps a group header at the top while its items scroll (not with Virtualize).
Clickable bool false Makes the items react to clicks: selection, OnClick, OnClickItem, double clicks, Href and Command. Without it clicks only expand nested items.
MultiSelect bool false Clicks toggle items; Shift+click selects a range, Ctrl+A everything.
ShowCheckboxes bool false A checkbox in front of every selectable item.
ShowSelectAll bool true With ShowCheckboxes and MultiSelect: a select-all checkbox in the header.
AllowDeselection bool false A click on the selected item deselects it (single selection).
Comparer IEqualityComparer<T>? null Compares values for selection and for matching data-bound items between renders.
SelectedValue DwsBoxedValue<T>? null The selected value (the one selected last with MultiSelect). Two-way bindable.
SelectedValues IReadOnlyCollection<T>? null All selected values. Two-way bindable.
SelectedItem DwsListItem<T>? null The rendered item of the selected value; null while it is not rendered. Two-way bindable.
Searchable bool false A search bar in the header that filters as the user types: a DwsInput with the search icon as its leading adornment and a DwsCloseButton that empties it.
SearchText string? null The search text; filters also without the bar. Two-way bindable.
SearchPlaceholder string? null Placeholder of the search bar. Default: a localized "Search...".
SearchFunc Func<T, string, bool>? null Decides whether an item matches. Default: the text contains the search text, ignoring case. Not used with LoadData.
SearchDebounce int 300 Milliseconds after the last keystroke before LoadData runs.
Haptic DwsHapticFeedback DwsHapticFeedback.Selection Touch feedback (IDwsHapticService, while the app has haptics on) when a tap selects an item, the select-all checkbox is ticked, or the sort and move buttons change the order. Played in the browser inside the tap; set it on the outermost list. None switches it off.
HighlightMatches bool true Marks the matched part of the item text.
Sortable bool false A sort button in the header: ascending, descending, given order.
SortDirection DwsSortDirection DwsSortDirection.None Sort order; each level is sorted on its own. Markup items are placed with the CSS order (aria-owns gives screen readers the same order) and subheaders/dividers step aside. Two-way bindable.
SortSelector Func<T, object?>? null The value to sort by. Default: the item text.
SortComparer IComparer<T>? null Compares two items for sorting; takes precedence over SortSelector.
PageSize int 0 Items per page with a pager below the list; 0 turns paging off (data-bound lists). In a drill-down each level has its own pages; LoadData pages the top level only.
PageQueryParameter string? null Link mode for paging: the query parameter (?orders-page=3, 1-based) naming the shown page. Under static SSR previous / next are links that set it (without it the list's Name is used, so a static list can always page). Interactive, the address gives the initial page and follows the pager.
Page int 0 The current page, starting at 0. Two-way bindable.
Virtualize bool false Renders only the rows in view (data-bound lists). Needs Height or MaxHeight and rows of ItemSize. With LoadData the rows are one flat list (no groups, children or select-all: only the loaded rows are known).
ItemSize float 40 Row height in px with Virtualize.
OverscanCount int 3 Rows rendered above and below the visible ones with Virtualize.
ShowExpandCollapseAll bool false Expand-all and collapse-all buttons in the header.
Reorderable bool false Drag and drop and Alt+Arrow Up/Down move items among their siblings (dragging a selected item takes the other selected ones along); raises OnReorder, apply it to your data. Markup items need a Value (and an @key when written from a collection, so a moved item keeps its focus). Paused while sorted or searched; not with LoadData.
ShowReorderButtons bool false With Reorderable: move-up and move-down buttons in the header for the selected items.
Removable bool false A remove button on every item and the Delete key; raises OnRemove. The button is a DwsCloseButton, always visible (also on touch screens, 44px hit area) and plays a light haptic.
KeyboardNavigation bool true Arrow keys, Home/End, Page Up/Down, type-ahead, Enter/Space and the shortcuts; the list is one tab stop.
Loading bool false Shows the loading state: a progress bar and, without items, a spinner or LoadingContent.
LoadingContent RenderFragment? null Replaces the default spinner while the list loads and has no items.
EmptyContent RenderFragment? null Replaces the default message when there are no items or none match the search.
Title string? null Text above the items; also the items' accessible name.
AriaLabel string? null Accessible name of the items when there is no Title (TitleContent names them through aria-labelledby).
TitleContent RenderFragment? null Custom content above the items instead of Title.
Color DwsColor DwsColor.Primary Accent color of selected items, the focus ring and the checkboxes.
ShowNumbers bool false Numbers the items; nested levels count on their own.
Border bool false Draws a border around the list.
ItemSeparator bool false Draws a line between the items. ItemSeperator is the obsolete old name.
DisableGutters bool false Removes the horizontal padding of every item.
Dense bool false Compact rows: less vertical padding and smaller text.
Tooltip string string.Empty Tooltip of the whole list.
TooltipPosition DwsTooltipPosition DwsTooltipPosition.Top Kept so existing markup still compiles: the tooltip is the browser's native title, which has no position.
Width int? null Width in px.
MinWidth int? null Minimum width in px.
MaxWidth int? null Maximum width in px.
Height int? null Height in px; the items scroll inside it.
MinHeight int? null Minimum height in px.
MaxHeight int? null Maximum height in px; the items scroll once they need more room.
Name Typ Description
SelectedValueChanged EventCallback<DwsBoxedValue<T>?> The selected value changed.
SelectedValuesChanged EventCallback<IReadOnlyCollection<T>> The selection changed.
SelectedItemChanged EventCallback<DwsListItem<T>> The rendered item of the selected value changed (also when it is rendered or removed).
SelectedItemsChanged EventCallback<IReadOnlyList<DwsListItem<T>>> The selection changed: the rendered items of all selected values (values without a rendered item have none).
OnSelectionChanged EventCallback<DwsListSelectionChangedEventArgs<T>> The selection changed: old and new value, all selected, added and removed values.
OnItemSelected EventCallback<DwsListItem<T>> A rendered item became selected.
OnItemDeselected EventCallback<DwsListItem<T>> A rendered item is no longer selected.
OnClickItem EventCallback<DwsListItem<T>> An item was clicked (needs Clickable).
OnDblClickItem EventCallback<DwsListItem<T>> An item was double-clicked (needs Clickable).
OnHoverItem EventCallback<DwsListItem<T>> The pointer entered an item.
OnItemAdded EventCallback<DwsListItem<T>> A DwsListItem child was added (not for data-bound items).
OnItemRemoved EventCallback<DwsListItem<T>> A DwsListItem child was removed from the markup (not for data-bound items).
OnRemove EventCallback<DwsListItem<T>> The user asked to remove an item (remove button or Delete key); remove it from your data.
OnReorder EventCallback<DwsListReorderEventArgs<T>> The user moved items: Item, OldIndex, NewIndex, the siblings in their new order (Items), MovedItems and Parent. Apply it to your data.
OnExpandedChanged EventCallback<DwsListNode<T>> A data-bound item was expanded or collapsed.
OnLevelChanged EventCallback<IReadOnlyList<T>> Drill-down: the shown level changed (also when an opened parent left the items); the path of opened items.
SearchTextChanged EventCallback<string> The search text changed.
SortDirectionChanged EventCallback<DwsSortDirection> The sort order changed.
PageChanged EventCallback<int> The page changed: the pager, a search, a moved item, a drill-down level, or items shrinking below the current page.
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 DwsListItem

Name Typ Default Description
IsSelected bool false Whether the item's value is selected.
IsExpanded bool false Whether the nested items are shown.
IsExpandable bool false Whether the item has nested items.
IsItemDisabled bool false Whether the item, or its whole list, is disabled.
Number int 0 Registration order within the list.
Name Typ Default Description
Text string string.Empty The text; also what search and type-ahead match, so set it next to ChildContent.
Value T? default The value selected with the item. Items without a value cannot be selected.
ChildContent RenderFragment? null Custom content instead of Text.
NestedList RenderFragment? null Nested items shown below this one when it is expanded.
Expanded bool false Whether NestedList is open. Two-way bindable.
InitiallyExpanded bool false Opens NestedList on first render.
Icon string string.Empty Icon in front of the text.
IconColor DwsColor DwsColor.Undefined Color of the icon.
IconSize DwsSize DwsSize.Medium Size of the icon and the chevron.
AdornmentColor DwsColor DwsColor.Undefined Color of the expand / collapse chevron; Undefined follows the text color.
ExpandLessIcon string Icons.BS.ChevronUp Chevron of an expanded item.
ExpandMoreIcon string Icons.BS.ChevronDown Chevron of a collapsed item.
Href string string.Empty Link opened on a click (needs Clickable).
ForceLoad bool false Opens Href with a full page load.
Command ICommand null Executed on a click (needs Clickable).
CommandParameter object null Parameter of Command.
DisableItem bool false Disables this item only; a disabled list disables all of them.
Removable bool? null Shows a remove button on this item; null follows the list's Removable.
OnClickHandlerPreventDefault bool false A click only raises the click callbacks: no selection, expansion, link or command.
Inset bool false Indents the text as if there were an icon.
DisableGutters bool false Removes the horizontal padding.
DisableRipple bool false Leaves out the ripple class of a clickable item.
Name Typ Description
OnClick EventCallback<MouseEventArgs> The item was clicked (needs Clickable).
OnDblClick EventCallback<MouseEventArgs> The item was double-clicked (needs Clickable).
OnHover EventCallback<MouseEventArgs> The pointer entered the item.
OnFocus EventCallback<FocusEventArgs> The item received focus.
OnBlur EventCallback<FocusEventArgs> The item lost focus.
OnKeyPress EventCallback<KeyboardEventArgs> A character key was pressed on the focused item.
ExpandedChanged EventCallback<bool> The nested list was opened or closed.
OnExpandStateChanged EventCallback<bool> The nested list was opened or closed.
OnSelectedChanged EventCallback<bool> The item became selected or deselected.
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 DwsListSubheader / DwsListDivider

Name Typ Default Description
DwsListSubheader.Text string? null Heading of the items written after it. Hidden while the list is searched.
DwsListSubheader.ChildContent RenderFragment? null Custom content instead of Text.
DwsListSubheader.Sticky bool true Keeps the heading at the top while its items scroll.
DwsListSubheader.Inset bool false Indents the heading to where the item text starts.
DwsListSubheader.DisableGutters bool false Removes the horizontal padding.
DwsListDivider.Text string? null Label in the middle of the line. Hidden while the list is searched.
DwsListDivider.Inset bool false Starts the line where the item text starts.
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.