silverstripe-framework/admin/client/src/components/TextField
Christopher Joe 287809ec3b Refactored react FormFields to use react-bootstrap FormControl components
Addded Checkbox, CheckboxSet and Optionset (radio) fields
Refactored documentation
2016-10-05 10:25:21 +13:00
..
tests Refactored react FormFields to use react-bootstrap FormControl components 2016-10-05 10:25:21 +13:00
README.md Refactored react FormFields to use react-bootstrap FormControl components 2016-10-05 10:25:21 +13:00
TextField.js Refactored react FormFields to use react-bootstrap FormControl components 2016-10-05 10:25:21 +13:00

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 use defaultValue 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.