Class
FormPage
ConsoleMonster.Interactive
A page of a form.
Inheritance
- object
- FormPage
Usage
Explore 23 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 10
- Method Form.Page
- Property Form.Pages
- Extension method FormPage.Description
- Extension method FormPage.Field
- Extension method FormPage.Fields
- Extension method FormPage.Title
- Method FormPageFluent.Description
- Method FormPageFluent.Field
- Method FormPageFluent.Fields
- Method FormPageFluent.Title
Accepted by parameters 13
- Extension method Form.Page
- Extension method Form.Pages
- Method Form.Page
- Method FormFluent.Page
- Method FormFluent.Pages
- Extension method FormPage.Description
- Extension method FormPage.Field
- Extension method FormPage.Fields
- Extension method FormPage.Title
- Method FormPageFluent.Description
- Method FormPageFluent.Field
- Method FormPageFluent.Fields
- Method FormPageFluent.Title
Constructors
Methods
public T Add<T>(T field) #Adds a field.
Type Parameters
- T
Parameters
- field T
- The field.
Returns
T The field.public ChoiceField MultiSelect(string key, string? label = null, IEnumerable<Choice>? choices = null) #Adds a multi-choice field.
Parameters
- key string
- The key.
- label string? = null
- The label.
- choices System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.Choice>? = null
- The choices.
public NumberField Number(string key, string? label = null) #Adds a number field.
Parameters
- key string
- The key.
- label string? = null
- The label.
public PathField Path(string key, string? label = null) #Adds a path field.
Parameters
- key string
- The key.
- label string? = null
- The label.
public SecretField Secret(string key, string? label = null) #Adds a secret field.
Parameters
- key string
- The key.
- label string? = null
- The label.
public ChoiceField Select(string key, string? label = null, IEnumerable<Choice>? choices = null) #Adds a single-choice field.
Parameters
- key string
- The key.
- label string? = null
- The label.
- choices System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.Choice>? = null
- The choices.
public TextField Text(string key, string? label = null) #Adds a text field.
Parameters
- key string
- The key.
- label string? = null
- The label.
public TextAreaField TextArea(string key, string? label = null) #Adds a field for several lines of text.
Parameters
- key string
- The key.
- label string? = null
- The label.
public ToggleField Toggle(string key, string? label = null) #Adds a toggle.
Parameters
- key string
- The key.
- label string? = null
- The label.
Inherited Methods
Properties
Extension Methods
public static FormPage Description(FormPage formPage, string? value) #Sets FormPage.Description: A sentence under the title.
Parameters
- formPage ConsoleMonster.Interactive.FormPage
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
formPage.Description = value; formPage.Description(value);public static FormPage Field(FormPage formPage, Field item) #Adds an item to FormPage.Fields: The fields.
Parameters
- formPage ConsoleMonster.Interactive.FormPage
- The instance.
- item ConsoleMonster.Interactive.Field
- The item.
public static FormPage Fields(FormPage formPage, IEnumerable<Field> items) #Adds items to FormPage.Fields: The fields.
Parameters
- formPage ConsoleMonster.Interactive.FormPage
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.Field>
- The items, in order.
public static FormPage Title(FormPage formPage, string value) #Sets FormPage.Title: The title (also shown in the progress strip).
Parameters
- formPage ConsoleMonster.Interactive.FormPage
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
formPage.Title = value; formPage.Title(value);