Summary
API
import Form from 'react-formal';
const Summary = Form.Summary
Display all Form validation errors
in a single summary list.
<Form schema={modelSchema} defaultValue={modelSchema.default()}> <Form.Summary/> <Form.Field name='name.first' placeholder='first'/> <Form.Field name='name.last' placeholder='surname'/> <Form.Field name='dateOfBirth' placeholder='dob'/> <Form.Submit>Validate</Form.Submit></Form>
as
A DOM node tag name or Component class the Message should render as.
type:elementType
default:
<ul>
errorClass
A css class that should be always be applied to the Summary container.
type:string
formatMessage
An error message renderer, Should return a ReactElement
function( message: string, idx: number, errors: array): ReactElement
type:(err: any, idx: number, errors: any[]) => ReactReactNode
default:
(message, idx) => <li key={idx}>{message}</li>
group
Specify a group to show errors for, if empty all form errors will be shown in the Summary.
type:string