mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
287809ec3b
Addded Checkbox, CheckboxSet and Optionset (radio) fields Refactored documentation |
||
---|---|---|
.. | ||
tests | ||
README.md | ||
TextField.js |
TextField Component
Generates an editable text field.
Example
<TextField name="my-text" />
Properties
id
(string): The ID for the component.extraClass
(string): Extra classes the component should have.name
(string) (required): The name for the component.onChange
(function): Event handler for when the component changes.value
(string|number): The value to display for the field, can usedefaultValue
for uncontrollable component.readOnly
(boolean): Whether this field is read only.disabled
(boolean): Whether this field is disabled.type
(string): Defines the type this component will have, e.g.email
,tel
.
NOTE: For other properties, please refer to the react-bootstrap FormControl documentation.