RayCraftDocs
v1.0.3 raycraft.dev
On this page

DropDownTree

Free

A drop-down field that opens a tree to choose one node. It is built from TreeView and Popover and keeps their keyboard behavior.

Example

DropDownTree control

Parameters

ParameterTypeDescription
ChildrenSelectorFunc<TItem, IEnumerable<TItem>>Returns the children of an item. Items without children are leaves.
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
ExpandAllboolExpands every node when the tree first appears.
HelperTextstringHint shown below the field.
ItemsIEnumerable<TItem>The options to choose from.
ItemTextFunc<TItem, string>Converts an item to its display text (defaults to ToString()).
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
ValueTItemCurrent value. Use with @bind-Value.

Events

EventTypeDescription
ValueChangedEventCallback<TItem>Raised when the value changes.

Package

DropDownTree is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.