silverstripe-framework/admin/client/src/components/FieldHolder
2016-08-28 13:07:31 +12:00
..
FieldHolder.js Fix SingleSelect styling, added add to campaign documentation 2016-08-28 13:07:31 +12:00
README.md Created FieldHolder HOC for TextField and HtmlReadonlyField 2016-08-16 16:53:17 +12:00

FieldHolder

This is a higher order component which can be used to wrap a form group around a React component (usually a form field). It also add a <label> and visually groups the two elements.

Props

title (string)

HTML value passed through to the <label> element

leftTitle (string)

Same as title (legacy use)

extraClass (string)

A class which is added to both the container and the wrapped React component.

id (string)

The HTML id for the form field. Important to associate the <label> the the actual field.

Other

All other props are passed through to the wrapped React component.