Skip to content
ConsoleMonster
Class

CollapsibleInputOptionsFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static

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

Content 2 overloads
public static CollapsibleInputOptions Content(CollapsibleInputOptions collapsibleInputOptions, IWidget content) #

Configures this container's content before session ownership.

Parameters

collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions required
The instance.
content ConsoleMonster.Layout.IWidget required
The widget or nested content builder.

Returns

CollapsibleInputOptions The same instance.
public static CollapsibleInputOptions Content(CollapsibleInputOptions collapsibleInputOptions, Action<ContentBuilder> content) #

Configures this container's content before session ownership.

Parameters

collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions required
The instance.
content System.Action<ConsoleMonster.Layout.ContentBuilder> required
The widget or nested content builder.

Returns

CollapsibleInputOptions The same instance.
public static CollapsibleInputOptions Disabled(CollapsibleInputOptions collapsibleInputOptions, bool value = true) #

Sets AppInputOptions.Disabled: Disables editing and keyboard focus.

Parameters

collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

CollapsibleInputOptions The same instance.

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 required
The instance.
value bool = true optional
The value; true when omitted.

Returns

CollapsibleInputOptions The same instance.

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 required
The instance.
value string required
The value.

Returns

CollapsibleInputOptions The same instance.

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 required
The instance.
value string? required
The value.

Returns

CollapsibleInputOptions The same instance.

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 required
The instance.
value string? required
The value.

Returns

CollapsibleInputOptions The same instance.

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 required
The instance.
value int required
The value.

Returns

CollapsibleInputOptions The same instance.

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 required
The instance.
value string? required
The value.

Returns

CollapsibleInputOptions The same instance.

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 required
The instance.
value System.EventHandler<ConsoleMonster.Interactive.AppValueChangedEventArgs>? required
The callback.

Returns

CollapsibleInputOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { OnChange = value };    Ui.Collapsible().WhenChanged(value);