ToggleInputOptions
ConsoleMonster.Interactive
Constructs a Boolean application input.
Inheritance
- AppInputOptions
- ToggleInputOptions
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 ToggleInputOptions.Configure
- Extension method ToggleInputOptions.Disabled
- Extension method ToggleInputOptions.Key
- Extension method ToggleInputOptions.Label
- Extension method ToggleInputOptions.OffText
- Extension method ToggleInputOptions.OnText
- Extension method ToggleInputOptions.TabIndex
- Extension method ToggleInputOptions.ValidationMessage
- Extension method ToggleInputOptions.Value
- Method ToggleInputOptionsFluent.Configure
- Method ToggleInputOptionsFluent.Disabled
- Method ToggleInputOptionsFluent.Key
- Method ToggleInputOptionsFluent.Label
- Method ToggleInputOptionsFluent.OffText
- Method ToggleInputOptionsFluent.OnText
- Method ToggleInputOptionsFluent.TabIndex
- Method ToggleInputOptionsFluent.ValidationMessage
- Method ToggleInputOptionsFluent.Value
- Method Ui.Toggle
Accepted by parameters 25
- Method AppInput.Toggle
- Extension method ToggleInputOptions.Build
- Extension method ToggleInputOptions.Configure
- Extension method ToggleInputOptions.Configure
- Extension method ToggleInputOptions.Disabled
- Extension method ToggleInputOptions.Key
- Extension method ToggleInputOptions.Label
- Extension method ToggleInputOptions.OffText
- Extension method ToggleInputOptions.OnText
- Extension method ToggleInputOptions.TabIndex
- Extension method ToggleInputOptions.ValidationMessage
- Extension method ToggleInputOptions.Value
- Method ToggleInputOptionsFluent.Configure
- Method ToggleInputOptionsFluent.Configure
- Method ToggleInputOptionsFluent.Disabled
- Method ToggleInputOptionsFluent.Key
- Method ToggleInputOptionsFluent.Label
- Method ToggleInputOptionsFluent.OffText
- Method ToggleInputOptionsFluent.OnText
- Method ToggleInputOptionsFluent.TabIndex
- Method ToggleInputOptionsFluent.ValidationMessage
- Method ToggleInputOptionsFluent.Value
- Method ContentBuilder.Toggle
- Method ContentBuilder.Toggle
- Method UiConstruction.Build
Constructors
public ToggleInputOptions() #Inherited Methods
Properties
Inherited Properties
public EventHandler<AppValueChangedEventArgs>? OnChange { get; set; } #Extension Methods
public static Toggle Build(ToggleInputOptions options) #Creates a toggle through the shared input factory.
Parameters
- options ConsoleMonster.Interactive.ToggleInputOptions
- The configured definition.
public static ToggleInputOptions Configure(ToggleInputOptions toggleInputOptions, Action<ToggleInputOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.ToggleInputOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { OnChange = value }; Ui.Toggle().Configure(configured => configured.OnChange = value);public static ToggleInputOptions Disabled(ToggleInputOptions toggleInputOptions, bool value) #Sets AppInputOptions.Disabled: Disables editing and keyboard focus.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { Disabled = value }; Ui.Toggle().Disabled(value);public static ToggleInputOptions Disabled(ToggleInputOptions toggleInputOptions) #Sets AppInputOptions.Disabled to true.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance to configure.
public static ToggleInputOptions Key(ToggleInputOptions toggleInputOptions, string value) #Sets AppInputOptions.Key: The unique application-state key.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { Key = value }; Ui.Toggle().Key(value);public static ToggleInputOptions Label(ToggleInputOptions toggleInputOptions, string? value) #Sets AppInputOptions.Label: The visible label; null uses the key.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { Label = value }; Ui.Toggle().Label(value);public static ToggleInputOptions OffText(ToggleInputOptions toggleInputOptions, string? value) #Sets ToggleInputOptions.OffText: Text for the unchecked value; null uses the localized No label.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { OffText = value }; Ui.Toggle().OffText(value);public static ToggleInputOptions OnText(ToggleInputOptions toggleInputOptions, string? value) #Sets ToggleInputOptions.OnText: Text for the checked value; null uses the localized Yes label.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { OnText = value }; Ui.Toggle().OnText(value);public static ToggleInputOptions TabIndex(ToggleInputOptions toggleInputOptions, int value) #Sets AppInputOptions.TabIndex: Keyboard focus order; equal values preserve declaration order.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { TabIndex = value }; Ui.Toggle().TabIndex(value);public static ToggleInputOptions ValidationMessage(ToggleInputOptions toggleInputOptions, string? value) #Sets AppInputOptions.ValidationMessage: Initial validation text.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { ValidationMessage = value }; Ui.Toggle().ValidationMessage(value);public static ToggleInputOptions Value(ToggleInputOptions toggleInputOptions, bool value) #Sets ToggleInputOptions.Value: The initial Boolean value.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ToggleInputOptions { Value = value }; Ui.Toggle().Value(value);public static ToggleInputOptions Value(ToggleInputOptions toggleInputOptions) #Sets ToggleInputOptions.Value to true.
Parameters
- toggleInputOptions ConsoleMonster.Interactive.ToggleInputOptions
- The instance to configure.