Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

MultiTreeSelect

Since 0.1.0-alpha.22
Opens a tree from a field to pick several nodes, shown as chips in the space of one input.

IzzyBlazor.MultiTreeSelect<TValue, TItem, TItemValue> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (22)

ItemValueFunc<TItem, TItemValue>? requiredAdded in 0.1.0-alpha.22

The value an item adds to the collection when checked, such as its id.

Cascadebool = trueAdded in 0.1.0-alpha.22

Checking a parent checks its branch, and a parent shows how much of its branch is checked. On by default; false makes each box its own.

ValueTextFunc<TItemValue, string>? (computed)Added in 0.1.0-alpha.22

Names a chosen value when its item isn't in the tree yet: in a branch still to load (ChildrenProvider). Defaults to the value's string form.

ItemsIEnumerable<TItem>?Added in 0.1.0-alpha.22

The items at the top of the tree.

ItemChildrenFunc<TItem, IEnumerable<TItem>?>?Added in 0.1.0-alpha.22

An item's children, or null or empty when it has none.

ItemTextFunc<TItem, string?>? (computed)Added in 0.1.0-alpha.22

An item's text in the tree and in the field once chosen. Defaults to the item's ToString(). Where two items share a name (Sales under two regions), return a path such as "West / Sales".

ItemDescriptionFunc<TItem, string?>?Added in 0.1.0-alpha.22

A muted second line under an item's text in the tree.

ItemIconFunc<TItem, IconData?>?Added in 0.1.0-alpha.22

An icon before an item's text in the tree.

ItemTemplateRenderFragment<TItem>?Added in 0.1.0-alpha.22

Markup for each item in the tree, in place of its text, description and icon. The field shows ItemText.

ItemExpandedFunc<TItem, bool>?Added in 0.1.0-alpha.22

Starts an item's children open. Branches that hold a chosen item start open anyway.

ItemDisabledFunc<TItem, bool>?Added in 0.1.0-alpha.22

Dims an item and stops it being chosen. Its children still open.

ItemSelectableFunc<TItem, bool>?Added in 0.1.0-alpha.22

Whether an item can be chosen; one that can't is a label for its branch, and with IzzyBlazor's script a click on it opens or closes the branch. Every item can be chosen by default; c => c.Children.Count == 0 allows only the ends of branches.

Searchablebool = falseAdded in 0.1.0-alpha.22

A search box at the top of the panel that narrows the tree as you type: matches and their parents stay, their branches open. In the browser, with IzzyBlazor's script.

SearchLabelstring? (computed)Added in 0.1.0-alpha.22

The search box's name and placeholder. Defaults to "Search" (Search).

ItemHasChildrenFunc<TItem, bool>?Added in 0.1.0-alpha.22

Says an item has children to load with ChildrenProvider when its branch first opens, for items whose ItemChildren is empty.

ChildrenProviderFunc<string, CancellationToken, ValueTask<IEnumerable<TItem>>>?Added in 0.1.0-alpha.22

Loads an item's children, given its key (its value's string form), the first time its branch opens: in the component on interactive pages, and on static pages by the script fetching the page with the key. Needs ItemHasChildren. A chosen value whose item hasn't loaded is named by ValueText.

Placeholderstring?Added in 0.1.0-alpha.22

Text in the field while nothing is chosen, such as "Choose a category".

EmptyTextstring? (computed)Added in 0.1.0-alpha.22

Shown in the panel when there are no items. Defaults to "No items" (NoItems).

Clearablebool = falseAdded in 0.1.0-alpha.22

A button in the field that empties it, for a value that can be empty, there while one is chosen. Off by default.

ReadOnlybool = falseAdded in 0.1.0-alpha.22

Makes the field read-only: the chosen text shows in a read-only text field, and the value still posts.

@bind-ValueTValueAdded in 0.1.0-alpha.22

The value, bound with @bind-Value.

DisplayNamestring?Added in 0.1.0-alpha.22

The field's name in validation messages from the input itself, such as a value that can't be parsed.

Events (0)

No events.

Connection lost

Rejoining the server…