Skip to content
ConsoleMonster
Class

TreeSelectInputOptions

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

Named, lazy object-tree construction shared by Ui.TreeSelect and PowerShell.

Inheritance

Usage

Explore 37 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 20

Constructors

public TreeSelectInputOptions() #

Methods

public TreeSelect Build() #

Constructs a persistent tree input.

Returns

TreeSelect

Properties

public ObjectExplorer? Explorer { get; set; } #

The explorer model with member adapters and expansion limits.

public int Height { get; set; } #

Natural visible content rows.

Extension Methods

public static TreeSelectInputOptions Configure(TreeSelectInputOptions treeSelectInputOptions, Action<TreeSelectInputOptions> configure) #

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
configure System.Action<ConsoleMonster.Interactive.TreeSelectInputOptions> required
Assignments applied in order.

Returns

TreeSelectInputOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ConsoleMonster.Interactive.TreeSelectInputOptions { OnChange = value };    Ui.TreeSelect().Configure(configured => configured.OnChange = value);
Disabled 2 overloads
public static TreeSelectInputOptions Disabled(TreeSelectInputOptions treeSelectInputOptions, bool value) #

Sets AppInputOptions.Disabled: Disables editing and keyboard focus.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
value bool required
The value.

Returns

TreeSelectInputOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ConsoleMonster.Interactive.TreeSelectInputOptions { Disabled = value };    Ui.TreeSelect().Disabled(value);
public static TreeSelectInputOptions Disabled(TreeSelectInputOptions treeSelectInputOptions) #

Sets AppInputOptions.Disabled to true.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance to configure.

Returns

TreeSelectInputOptions The same instance.
Explorer 2 overloads
public static TreeSelectInputOptions Explorer(TreeSelectInputOptions treeSelectInputOptions, ObjectExplorer? value) #

Sets TreeSelectInputOptions.Explorer: The explorer model with member adapters and expansion limits.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
value ConsoleMonster.Interactive.ObjectExplorer? required
The value.

Returns

TreeSelectInputOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ConsoleMonster.Interactive.TreeSelectInputOptions { Explorer = value };    Ui.TreeSelect().Explorer(value);
public static TreeSelectInputOptions Explorer(TreeSelectInputOptions treeSelectInputOptions, Action<ObjectExplorer> configure) #

Configures TreeSelectInputOptions.Explorer in place: The explorer model with member adapters and expansion limits.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
configure System.Action<ConsoleMonster.Interactive.ObjectExplorer> required
Configures the value.

Returns

TreeSelectInputOptions The same instance.
public static TreeSelectInputOptions Height(TreeSelectInputOptions treeSelectInputOptions, int value) #

Sets TreeSelectInputOptions.Height: Natural visible content rows.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
value int required
The value.

Returns

TreeSelectInputOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ConsoleMonster.Interactive.TreeSelectInputOptions { Height = value };    Ui.TreeSelect().Height(value);
public static TreeSelectInputOptions Key(TreeSelectInputOptions treeSelectInputOptions, string value) #

Sets AppInputOptions.Key: The unique application-state key.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
value string required
The value.

Returns

TreeSelectInputOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ConsoleMonster.Interactive.TreeSelectInputOptions { Key = value };    Ui.TreeSelect().Key(value);
public static TreeSelectInputOptions Label(TreeSelectInputOptions treeSelectInputOptions, string? value) #

Sets AppInputOptions.Label: The visible label; null uses the key.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
value string? required
The value.

Returns

TreeSelectInputOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ConsoleMonster.Interactive.TreeSelectInputOptions { Label = value };    Ui.TreeSelect().Label(value);
public static TreeSelectInputOptions TabIndex(TreeSelectInputOptions treeSelectInputOptions, int value) #

Sets AppInputOptions.TabIndex: Keyboard focus order; equal values preserve declaration order.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
value int required
The value.

Returns

TreeSelectInputOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ConsoleMonster.Interactive.TreeSelectInputOptions { TabIndex = value };    Ui.TreeSelect().TabIndex(value);
public static TreeSelectInputOptions ValidationMessage(TreeSelectInputOptions treeSelectInputOptions, string? value) #

Sets AppInputOptions.ValidationMessage: Initial validation text.

Parameters

treeSelectInputOptions ConsoleMonster.Interactive.TreeSelectInputOptions required
The instance.
value string? required
The value.

Returns

TreeSelectInputOptions The same instance.

Examples

// C# initializer or property                                                                   // C# fluent
new global::ConsoleMonster.Interactive.TreeSelectInputOptions { ValidationMessage = value };    Ui.TreeSelect().ValidationMessage(value);