Class
AppInput
ConsoleMonster.Interactive
Constructs persistent inputs from the same kind selectors and options as PowerShell.
Inheritance
- object
- AppInput
Methods
public static Button Button(ButtonInputOptions options) #Constructs a button and attaches typed callbacks after initialization.
Parameters
- options ConsoleMonster.Interactive.ButtonInputOptions
- Key, label, state and callback configuration.
public static InputControl Select(SelectInputOptions options) #Creates a scalar Select or collection-valued MultiSelect without changing choice metadata.
Parameters
- options ConsoleMonster.Interactive.SelectInputOptions
Returns
InputControlpublic static InputControl Text(TextInputOptions options) #Creates a TextInput or TextArea, rejecting options that do not apply to its kind.
Parameters
- options ConsoleMonster.Interactive.TextInputOptions
Returns
InputControlpublic static Toggle Toggle(ToggleInputOptions options) #Constructs a Boolean control using the same definition as New-ConsoleToggle.
Parameters
- options ConsoleMonster.Interactive.ToggleInputOptions
- Key, label, initial state and callback configuration.