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:

PropertyDescriptionForm
formatSets the format definition that the TextBox should use to perform string manipulations with. If no format is specified string is assumed.Name of a standard format
or a custom format include
suffixSets the text to be placed to the right of the textbox.string
inputPatternSets the input string filter for determining valid inputs. For example, a number TextBox would have inputPattern: '[0-9]+'regular expression string
alignTextSet the horizontal alignment of the text within the TextBox.enum: left, center, right
borderlessToggles whether the control has a visible border or not. This is mainly used when a TextBox is add to the template of a ListBox.bool

Supported Option Types

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.