SelectInputOptionsFluent
ConsoleMonster.Interactive
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
- The instance.
- item ConsoleMonster.Interactive.Choice
- The item.
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
- The instance.
- items ConsoleMonster.Interactive.Choice[]
- The items, in order.
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
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.Choice>
- The items, in order.
public static SelectInputOptions Configure(SelectInputOptions selectInputOptions, Action<SelectInputOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- selectInputOptions ConsoleMonster.Interactive.SelectInputOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.SelectInputOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.SelectInputOptions { OnChange = value }; Ui.Select().Configure(configured => configured.OnChange = value);public static SelectInputOptions Disabled(SelectInputOptions selectInputOptions, bool value) #Sets AppInputOptions.Disabled: Disables editing and keyboard focus.
Parameters
- selectInputOptions ConsoleMonster.Interactive.SelectInputOptions
- The instance.
- value bool
- The value.
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
- The instance to configure.
public static SelectInputOptions Key(SelectInputOptions selectInputOptions, string value) #Sets AppInputOptions.Key: The unique application-state key.
Parameters
- selectInputOptions ConsoleMonster.Interactive.SelectInputOptions
- The instance.
- value string
- The value.
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
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.SelectInputOptions { Label = value }; Ui.Select().Label(value);public static SelectInputOptions Multiple(SelectInputOptions selectInputOptions, bool value) #Sets SelectInputOptions.Multiple: Whether the committed value is a collection.
Parameters
- selectInputOptions ConsoleMonster.Interactive.SelectInputOptions
- The instance.
- value bool
- The value.
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
- The instance to configure.
public static SelectInputOptions PageSize(SelectInputOptions selectInputOptions, int? value) #Sets SelectInputOptions.PageSize: Visible choice rows; null keeps the control default.
Parameters
- selectInputOptions ConsoleMonster.Interactive.SelectInputOptions
- The instance.
- value int?
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value object?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.SelectInputOptions { Value = value }; Ui.Select().Value(value);