mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
d9f0914e4f
This should be separated out to a common FormField class, but for now we're only using TextField. Can be solved properly at the same time as switching form fields to react-bootstrap. Required for readonly field value alignment in the "campaigns" edit form. |
||
---|---|---|
.. | ||
tests | ||
README.md | ||
TextField.js |
Text Field Component
Generates an editable text field.
Props
leftTitle
The label text to display with the field.
extraClass
Addition CSS classes to apply to the <input>
element.
name (required)
Used for the field's name
attribute.
handleFieldUpdate
Handler function called when the field's value changes.
value
The field's value.