Section author: Jonathon Love
TextBox
Inherits from OptionControl
A TextBox
allows for the displaying and editing of the value of an option in text form.
Properties
In addition to any inherited properties, a TextBox
supports:
Property |
Description |
Form |
---|---|---|
|
Sets the format definition that the |
Name of a: |
|
Sets the text to be placed to the right of the textbox. |
string |
|
Sets the input string filter for determining valid inputs. For example, a number |
regular expression, string |
|
Set the horizontal alignment of the text within the |
enum: left, center, right |
|
Toggles whether the control has a visible border or not. This is mainly used when a |
bool |
Supported Option Types
String
Integer
Number
Any format that has both toString() and parsing capabilities.
Example
- type: CheckBox
name: logOdds
children:
- type: TextBox
name: ciWidth
suffix: '%'
format: number
inputPattern: '[0-9]+'
enable: (logOdds)
The above example adds a TextBox
as a child control to a CheckBox
.