SelectInputOptions
ConsoleMonster.Interactive
One definition for single and multiple persistent selection controls.
Inheritance
- AppInputOptions
- SelectInputOptions
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.
Returned or exposed by 23
- Extension method SelectInputOptions.AddChoice
- Extension method SelectInputOptions.AddChoices
- Extension method SelectInputOptions.Configure
- Extension method SelectInputOptions.Disabled
- Extension method SelectInputOptions.Key
- Extension method SelectInputOptions.Label
- Extension method SelectInputOptions.Multiple
- Extension method SelectInputOptions.PageSize
- Extension method SelectInputOptions.TabIndex
- Extension method SelectInputOptions.ValidationMessage
- Extension method SelectInputOptions.Value
- Method SelectInputOptionsFluent.AddChoice
- Method SelectInputOptionsFluent.AddChoices
- Method SelectInputOptionsFluent.Configure
- Method SelectInputOptionsFluent.Disabled
- Method SelectInputOptionsFluent.Key
- Method SelectInputOptionsFluent.Label
- Method SelectInputOptionsFluent.Multiple
- Method SelectInputOptionsFluent.PageSize
- Method SelectInputOptionsFluent.TabIndex
- Method SelectInputOptionsFluent.ValidationMessage
- Method SelectInputOptionsFluent.Value
- Method Ui.Select
Accepted by parameters 29
- Method AppInput.Select
- Extension method SelectInputOptions.AddChoice
- Extension method SelectInputOptions.AddChoices
- Extension method SelectInputOptions.Build
- Extension method SelectInputOptions.Configure
- Extension method SelectInputOptions.Configure
- Extension method SelectInputOptions.Disabled
- Extension method SelectInputOptions.Key
- Extension method SelectInputOptions.Label
- Extension method SelectInputOptions.Multiple
- Extension method SelectInputOptions.PageSize
- Extension method SelectInputOptions.TabIndex
- Extension method SelectInputOptions.ValidationMessage
- Extension method SelectInputOptions.Value
- Method SelectInputOptionsFluent.AddChoice
- Method SelectInputOptionsFluent.AddChoices
- Method SelectInputOptionsFluent.Configure
- Method SelectInputOptionsFluent.Configure
- Method SelectInputOptionsFluent.Disabled
- Method SelectInputOptionsFluent.Key
- Method SelectInputOptionsFluent.Label
- Method SelectInputOptionsFluent.Multiple
- Method SelectInputOptionsFluent.PageSize
- Method SelectInputOptionsFluent.TabIndex
- Method SelectInputOptionsFluent.ValidationMessage
- Method SelectInputOptionsFluent.Value
- Method ContentBuilder.Select
- Method ContentBuilder.Select
- Method UiConstruction.Build
Constructors
public SelectInputOptions() #Inherited Methods
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.
Inherited Properties
public EventHandler<AppValueChangedEventArgs>? OnChange { get; set; } #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
- 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 InputControl Build(SelectInputOptions options) #Creates single or multiple selection through the shared input factory.
Parameters
- options ConsoleMonster.Interactive.SelectInputOptions
- The configured definition.
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);