FormOptionsFluent
ConsoleMonster.Interactive
The fluent methods of FormOptions, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- FormOptionsFluent
Methods
public static FormOptions AppName(FormOptions formOptions, string? value) #Sets FormOptions.AppName: The app name presets and remembered choices are stored under; null disables both.
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.FormOptions { AppName = value }; Ui.Options<global::ConsoleMonster.Interactive.FormOptions>().AppName(value);public static FormOptions Configure(FormOptions formOptions, Action<FormOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.FormOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.FormOptions { AfterSubmit = value }; Ui.Options<global::ConsoleMonster.Interactive.FormOptions>().Configure(configured => configured.AfterSubmit = value);public static FormOptions Inline(FormOptions formOptions, bool value) #Sets FormOptions.Inline: Draws the form in the scrollback instead of on the alternate screen.
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.FormOptions { Inline = value }; Ui.Options<global::ConsoleMonster.Interactive.FormOptions>().Inline(value);public static FormOptions Inline(FormOptions formOptions) #Sets FormOptions.Inline to true.
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance to configure.
public static FormOptions Interactive(FormOptions formOptions, InteractiveOptions? value) #Sets FormOptions.Interactive: Interaction settings (mode, input, profile, theme, labels).
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance.
- value ConsoleMonster.Interactive.InteractiveOptions?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.FormOptions { Interactive = value }; Ui.Options<global::ConsoleMonster.Interactive.FormOptions>().Interactive(value);public static FormOptions Interactive(FormOptions formOptions, Action<InteractiveOptions> configure) #Configures FormOptions.Interactive in place (creating it when not set): Interaction settings (mode, input, profile, theme, labels).
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.InteractiveOptions>
- Configures the value.
public static FormOptions Preset(FormOptions formOptions, string? value) #Sets FormOptions.Preset: A preset to apply before showing.
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.FormOptions { Preset = value }; Ui.Options<global::ConsoleMonster.Interactive.FormOptions>().Preset(value);public static FormOptions RememberLastChoices(FormOptions formOptions, bool value) #Sets FormOptions.RememberLastChoices: Whether the last submitted values are remembered and offered next time (opt-in).
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.FormOptions { RememberLastChoices = value }; Ui.Options<global::ConsoleMonster.Interactive.FormOptions>().RememberLastChoices(value);public static FormOptions RememberLastChoices(FormOptions formOptions) #Sets FormOptions.RememberLastChoices to true.
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance to configure.
public static FormOptions StorageRoot(FormOptions formOptions, string? value) #Sets FormOptions.StorageRoot: The folder for the app's storage folder; null uses the per-user default.
Parameters
- formOptions ConsoleMonster.Interactive.FormOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.FormOptions { StorageRoot = value }; Ui.Options<global::ConsoleMonster.Interactive.FormOptions>().StorageRoot(value);