TreeViewTElement Class

Represents a TreeView component. The component does not concern itself with the element it is placed in; background, size etc. is handled by parent HTML components

Definition

Namespace: MobileTrack.Web.Components.Components
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class TreeView<TElement> : ComponentBase
where TElement : class, IIdLabel, IHasEnvironment
Inheritance
Object    ComponentBase    TreeViewTElement

Type Parameters

TElement
Model items to display.

Constructors

TreeViewTElementInitializes a new instance of the TreeViewTElement class

Properties

ContextMenuId Reference to the context menu when the user right-clicks on an item
Id HTML ID of the element
OnItemSelected Invoked when an item is selected.
SelectedItem Represents the selected item in the stack, for rendering purposes.
TreeItems TreeView items to display

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