CollapsibleInputOptionsFluent
ConsoleMonster.Interactive
The fluent methods of CollapsibleInputOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- CollapsibleInputOptionsFluent
Methods
public static CollapsibleInputOptions Content(CollapsibleInputOptions collapsibleInputOptions, IWidget content) #Configures this container's content before session ownership.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- content ConsoleMonster.Layout.IWidget
- The widget or nested content builder.
public static CollapsibleInputOptions Content(CollapsibleInputOptions collapsibleInputOptions, Action<ContentBuilder> content) #Configures this container's content before session ownership.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- content System.Action<ConsoleMonster.Layout.ContentBuilder>
- The widget or nested content builder.
public static CollapsibleInputOptions Disabled(CollapsibleInputOptions collapsibleInputOptions, bool value = true) #Sets AppInputOptions.Disabled: Disables editing and keyboard focus.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { Disabled = value }; Ui.Collapsible().Disabled(value);public static CollapsibleInputOptions Expanded(CollapsibleInputOptions collapsibleInputOptions, bool value = true) #Sets CollapsibleInputOptions.Expanded: Whether the section starts expanded.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { Expanded = value }; Ui.Collapsible().Expanded(value);public static CollapsibleInputOptions Key(CollapsibleInputOptions collapsibleInputOptions, string value) #Sets AppInputOptions.Key: The unique application-state key.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { Key = value }; Ui.Collapsible().Key(value);public static CollapsibleInputOptions Label(CollapsibleInputOptions collapsibleInputOptions, string? value) #Sets AppInputOptions.Label: The visible label; null uses the key.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { Label = value }; Ui.Collapsible().Label(value);public static CollapsibleInputOptions Summary(CollapsibleInputOptions collapsibleInputOptions, string? value) #Sets CollapsibleInputOptions.Summary: Muted text after the label while collapsed, such as a count.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { Summary = value }; Ui.Collapsible().Summary(value);public static CollapsibleInputOptions TabIndex(CollapsibleInputOptions collapsibleInputOptions, int value) #Sets AppInputOptions.TabIndex: Keyboard focus order; equal values preserve declaration order.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { TabIndex = value }; Ui.Collapsible().TabIndex(value);public static CollapsibleInputOptions ValidationMessage(CollapsibleInputOptions collapsibleInputOptions, string? value) #Sets AppInputOptions.ValidationMessage: Initial validation text.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { ValidationMessage = value }; Ui.Collapsible().ValidationMessage(value);public static CollapsibleInputOptions WhenChanged(CollapsibleInputOptions collapsibleInputOptions, EventHandler<AppValueChangedEventArgs>? value) #Sets AppInputOptions.OnChange: Runs after a committed value change on the application input thread.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value System.EventHandler<ConsoleMonster.Interactive.AppValueChangedEventArgs>?
- The callback.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { OnChange = value }; Ui.Collapsible().WhenChanged(value);