CollapsibleFluent
ConsoleMonster.Interactive
The fluent methods of Collapsible, 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
- CollapsibleFluent
Methods
public static Collapsible Binding(Collapsible collapsible, KeyBinding item) #Adds an item to InputControl.Bindings: Keys that apply while this control has focus. They reach the control before its own keys (so Enter can open the selected row) and feed the app footer.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- item ConsoleMonster.Interactive.KeyBinding
- The item.
public static Collapsible Bindings(Collapsible collapsible, IEnumerable<KeyBinding> items) #Adds items to InputControl.Bindings: Keys that apply while this control has focus. They reach the control before its own keys (so Enter can open the selected row) and feed the app footer.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.KeyBinding>
- The items, in order.
public static Collapsible Content(Collapsible collapsible, IWidget? value) #Sets Collapsible.Content: The content shown under the header while expanded.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- value ConsoleMonster.Layout.IWidget?
- The value.
Examples
// C# initializer or property // C# fluent
collapsible.Content = value; collapsible.Content(value);public static Collapsible Disabled(Collapsible collapsible, bool value = true) #Sets InputControl.Disabled: Whether this control is excluded from input and focus traversal.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
collapsible.Disabled = value; collapsible.Disabled(value);public static Collapsible Expanded(Collapsible collapsible, bool value = true) #Sets Collapsible.Expanded: Whether the content is shown. Assignments notify only when the value changes.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
collapsible.Expanded = value; collapsible.Expanded(value);public static Collapsible Label(Collapsible collapsible, string? value) #Sets InputControl.Label: The visible label, or null to use the name.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
collapsible.Label = value; collapsible.Label(value);public static Collapsible Summary(Collapsible collapsible, string? value) #Sets Collapsible.Summary: Muted text after the label while collapsed, such as a count; null shows the label alone.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
collapsible.Summary = value; collapsible.Summary(value);public static Collapsible TabIndex(Collapsible collapsible, int value) #Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
collapsible.TabIndex = value; collapsible.TabIndex(value);public static Collapsible ValidationMessage(Collapsible collapsible, string? value) #Sets InputControl.ValidationMessage: The current validation message below the control, or null.
Parameters
- collapsible ConsoleMonster.Interactive.Collapsible
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
collapsible.ValidationMessage = value; collapsible.ValidationMessage(value);