mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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.
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.