html.form.field.BaseEditableField | +-- html.form.field.BaseSingleValueField | +-- html.form.field.SingleChoiceField
A form editor that allows to choose a single values among a finite list.
This can be rendered either as a combo-box (default), a list of radio-buttons or a single-selection list.
Supported value types are: int
, java.lang.Integer
, enum
or java.lang.String
.
Attributes | ||
optional
enums.SingleChoiceType |
Type |
The field display style. Default: ComboBox. |
optional
int
|
ListSize |
Defines the height of the list (for display style List only). Default: 8; |
Named Children Elements | ||
mandatory
binding.Expression |
Label |
The displayed field label. |
optional
binding.Expression |
Tip |
A tip (information) associated to the field. |
optional
binding.Expression |
Visible |
Determines whether this field is visible. Default: true. |
optional
binding.Expression |
Editable |
Determines whether this field is editable. Default: true. |
0 - unbounded
html.menu.IMenuItem[] |
FieldButtons |
Buttons displayed right next to the form field. |
mandatory
binding.Expression |
Bind |
The expression to get (and possibly set) the associated value. |
0 - unbounded
validation.IValidator[] |
Validators |
Validators associated to this field. |
mandatory
html.item.IItemsProvider |
Items |
The component that defines all choice items. |
optional
binding.Expression |
OnChange |
Callback to trigger when the selection changes (causes the form to reload). Should be used to implement dynamic form fields. |