Skip to content

Commit

Permalink
docs: document placeholder and autofocus widget props (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
epicfaace authored Mar 28, 2019
1 parent 0f4889c commit 889871f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/advanced-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ The following props are passed to custom widget components:
- `id`: The generated id for this field;
- `schema`: The JSONSchema subschema object for this field;
- `value`: The current value for this field;
- `placeholder`: the placeholder for the field, if any;
- `required`: The required status of this field;
- `disabled`: `true` if the widget is disabled;
- `readonly`: `true` if the widget is read-only;
- `autofocus`: `true` if the widget should autofocus;
- `onChange`: The value change event handler; call it with the new value everytime it changes;
- `onBlur`: The input blur event handler; call it with the the widget id and value;
- `onFocus`: The input focus event handler; call it with the the widget id and value;
Expand Down

0 comments on commit 889871f

Please sign in to comment.