Skip to content
ConsoleMonster
Class

AppInput

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static

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 required
Key, label, state and callback configuration.

Returns

Button The persistent button.
public static InputControl Select(SelectInputOptions options) #

Creates a scalar Select or collection-valued MultiSelect without changing choice metadata.

Parameters

options ConsoleMonster.Interactive.SelectInputOptions required
public static InputControl Text(TextInputOptions options) #

Creates a TextInput or TextArea, rejecting options that do not apply to its kind.

Parameters

options ConsoleMonster.Interactive.TextInputOptions required
public static Toggle Toggle(ToggleInputOptions options) #

Constructs a Boolean control using the same definition as New-ConsoleToggle.

Parameters

options ConsoleMonster.Interactive.ToggleInputOptions required
Key, label, initial state and callback configuration.

Returns

Toggle The persistent toggle.