CollapsibleInputOptions
ConsoleMonster.Interactive
Constructs a collapsible section using the same definition as New-ConsoleCollapsible.
Inheritance
- AppInputOptions
- CollapsibleInputOptions
Usage
Explore 44 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 19
- Extension method CollapsibleInputOptions.Configure
- Extension method CollapsibleInputOptions.Content
- Extension method CollapsibleInputOptions.Disabled
- Extension method CollapsibleInputOptions.Expanded
- Extension method CollapsibleInputOptions.Key
- Extension method CollapsibleInputOptions.Label
- Extension method CollapsibleInputOptions.Summary
- Extension method CollapsibleInputOptions.TabIndex
- Extension method CollapsibleInputOptions.ValidationMessage
- Method InteractiveFluent.Configure
- Method InteractiveFluent.Content
- Method InteractiveFluent.Disabled
- Method InteractiveFluent.Expanded
- Method InteractiveFluent.Key
- Method InteractiveFluent.Label
- Method InteractiveFluent.Summary
- Method InteractiveFluent.TabIndex
- Method InteractiveFluent.ValidationMessage
- Method Ui.Collapsible
Accepted by parameters 25
- Method AppInput.Collapsible
- Extension method CollapsibleInputOptions.Build
- Extension method CollapsibleInputOptions.Configure
- Extension method CollapsibleInputOptions.Configure
- Extension method CollapsibleInputOptions.Content
- Extension method CollapsibleInputOptions.Disabled
- Extension method CollapsibleInputOptions.Expanded
- Extension method CollapsibleInputOptions.Key
- Extension method CollapsibleInputOptions.Label
- Extension method CollapsibleInputOptions.Summary
- Extension method CollapsibleInputOptions.TabIndex
- Extension method CollapsibleInputOptions.ValidationMessage
- Method InteractiveFluent.Configure
- Method InteractiveFluent.Configure
- Method InteractiveFluent.Content
- Method InteractiveFluent.Disabled
- Method InteractiveFluent.Expanded
- Method InteractiveFluent.Key
- Method InteractiveFluent.Label
- Method InteractiveFluent.Summary
- Method InteractiveFluent.TabIndex
- Method InteractiveFluent.ValidationMessage
- Method ContentBuilder.Collapsible
- Method ContentBuilder.Collapsible
- Method UiConstruction.Build
Constructors
public CollapsibleInputOptions() #Inherited Methods
Properties
Inherited Properties
public EventHandler<AppValueChangedEventArgs>? OnChange { get; set; } #Extension Methods
public static Collapsible Build(CollapsibleInputOptions options) #Creates a collapsible section through the shared input factory.
Parameters
- options ConsoleMonster.Interactive.CollapsibleInputOptions
- The configured definition.
public static CollapsibleInputOptions Configure(CollapsibleInputOptions collapsibleInputOptions, Action<CollapsibleInputOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.CollapsibleInputOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { OnChange = value }; Ui.Collapsible().Configure(configured => configured.OnChange = value);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) #Sets AppInputOptions.Disabled: Disables editing and keyboard focus.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { Disabled = value }; Ui.Collapsible().Disabled(value);public static CollapsibleInputOptions Disabled(CollapsibleInputOptions collapsibleInputOptions) #Sets AppInputOptions.Disabled to true.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance to configure.
public static CollapsibleInputOptions Expanded(CollapsibleInputOptions collapsibleInputOptions, bool value) #Sets CollapsibleInputOptions.Expanded: Whether the section starts expanded.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.CollapsibleInputOptions { Expanded = value }; Ui.Collapsible().Expanded(value);public static CollapsibleInputOptions Expanded(CollapsibleInputOptions collapsibleInputOptions) #Sets CollapsibleInputOptions.Expanded to true.
Parameters
- collapsibleInputOptions ConsoleMonster.Interactive.CollapsibleInputOptions
- The instance to configure.
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);