Skip to content
ConsoleMonster
Class

SelectInputOptionsFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of SelectInputOptions, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • object
  • SelectInputOptionsFluent

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 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);