API Reference
Class
ToggleField
An on/off switch (a switch parameter in the equivalent command).
Inheritance
- Field
- ToggleField
Usage
Explore 2 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 2
- Method Form.Toggle
- Method FormPage.Toggle
Constructors
public ToggleField(String name, String? label = null) #Creates a toggle.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
Methods
public override String Display(Object? value, PromptLabels labels) #Returns:
StringThe value as shown in the form and on the review page.
Parameters
- value System.Object?
- The value.
- labels ConsoleMonster.Interactive.PromptLabels
- The labels.
Returns
The text.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?