Skip to content
ConsoleMonster
Class

SelectInputOptions

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

One definition for single and multiple persistent selection controls.

Inheritance

Usage

Explore 52 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 29

Constructors

public SelectInputOptions() #

Properties

public bool Multiple { get; set; } #

Whether the committed value is a collection.

public object? Value { get; set; } #

The initial scalar or collection; omission preserves choices marked Selected.

public int? PageSize { get; set; } #

Visible choice rows; null keeps the control default.

public IList<Choice> Choices { get; } #

The prepared choices, retaining original values and enabled/selected metadata.

Extension Methods

public static SelectInputOptions AddChoice(SelectInputOptions selectInputOptions, Choice item) #

Adds an item to SelectInputOptions.Choices: The prepared choices, retaining original values and enabled/selected metadata.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
item ConsoleMonster.Interactive.Choice required
The item.

Returns

SelectInputOptions The same instance.
AddChoices 2 overloads
public static SelectInputOptions AddChoices(SelectInputOptions selectInputOptions, params Choice[] items) #

Adds items to SelectInputOptions.Choices: The prepared choices, retaining original values and enabled/selected metadata.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
items ConsoleMonster.Interactive.Choice[] required
The items, in order.

Returns

SelectInputOptions The same instance.
public static SelectInputOptions AddChoices(SelectInputOptions selectInputOptions, IEnumerable<Choice> items) #

Adds items to SelectInputOptions.Choices: The prepared choices, retaining original values and enabled/selected metadata.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.Choice> required
The items, in order.

Returns

SelectInputOptions The same instance.
public static InputControl Build(SelectInputOptions options) #

Creates single or multiple selection through the shared input factory.

Parameters

options ConsoleMonster.Interactive.SelectInputOptions required
The configured definition.

Returns

InputControl The control.
public static SelectInputOptions Configure(SelectInputOptions selectInputOptions, Action<SelectInputOptions> configure) #

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

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
configure System.Action<ConsoleMonster.Interactive.SelectInputOptions> required
Assignments applied in order.

Returns

SelectInputOptions The same instance.

Examples

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

Sets AppInputOptions.Disabled: Disables editing and keyboard focus.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
value bool required
The value.

Returns

SelectInputOptions The same instance.

Examples

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

Sets AppInputOptions.Disabled to true.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance to configure.

Returns

SelectInputOptions The same instance.
public static SelectInputOptions Key(SelectInputOptions selectInputOptions, string value) #

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

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
value string required
The value.

Returns

SelectInputOptions The same instance.

Examples

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

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

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
value string? required
The value.

Returns

SelectInputOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ConsoleMonster.Interactive.SelectInputOptions { Label = value };    Ui.Select().Label(value);
Multiple 2 overloads
public static SelectInputOptions Multiple(SelectInputOptions selectInputOptions, bool value) #

Sets SelectInputOptions.Multiple: Whether the committed value is a collection.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
value bool required
The value.

Returns

SelectInputOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Interactive.SelectInputOptions { Multiple = value };    Ui.Select().Multiple(value);
public static SelectInputOptions Multiple(SelectInputOptions selectInputOptions) #

Sets SelectInputOptions.Multiple to true.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance to configure.

Returns

SelectInputOptions The same instance.
public static SelectInputOptions PageSize(SelectInputOptions selectInputOptions, int? value) #

Sets SelectInputOptions.PageSize: Visible choice rows; null keeps the control default.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
value int? required
The value.

Returns

SelectInputOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Interactive.SelectInputOptions { PageSize = value };    Ui.Select().PageSize(value);
public static SelectInputOptions TabIndex(SelectInputOptions selectInputOptions, int value) #

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

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
value int required
The value.

Returns

SelectInputOptions The same instance.

Examples

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

Sets AppInputOptions.ValidationMessage: Initial validation text.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
value string? required
The value.

Returns

SelectInputOptions The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::ConsoleMonster.Interactive.SelectInputOptions { ValidationMessage = value };    Ui.Select().ValidationMessage(value);
public static SelectInputOptions Value(SelectInputOptions selectInputOptions, object? value) #

Sets SelectInputOptions.Value: The initial scalar or collection; omission preserves choices marked Selected.

Parameters

selectInputOptions ConsoleMonster.Interactive.SelectInputOptions required
The instance.
value object? required
The value.

Returns

SelectInputOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ConsoleMonster.Interactive.SelectInputOptions { Value = value };    Ui.Select().Value(value);