PickerNode
Namespace: Hex1b
Assembly: Hex1b.dll
Render node for PickerWidget. Manages the picker's selection state and popup display.
csharp
public sealed class PickerNode : CompositeNodeInheritance
Object → Hex1bNode → CompositeNode → PickerNode
Properties
Items
The list of items available for selection.
Returns: IReadOnlyList<String>
csharp
public IReadOnlyList<string> Items { get; set; }SelectedIndex
The index of the currently selected item. This value is owned by the node and preserved across reconciliation.
Returns: Int32
csharp
public int SelectedIndex { get; set; }SelectedText
Gets the text of the currently selected item, or empty string if no items.
Returns: String
csharp
public string SelectedText { get; }SelectionChangedAction
Callback invoked when selection changes.
Returns: Func<InputBindingActionContext, Task>
csharp
public Func<InputBindingActionContext, Task>? SelectionChangedAction { get; set; }Methods
SelectItemAsync(int, InputBindingActionContext)
Selects an item by index and dismisses the popup.
Parameters:
index(Int32):context(InputBindingActionContext):
Returns: Task
csharp
public Task SelectItemAsync(int index, InputBindingActionContext context)