Skip to content

Commit

Permalink
Update <Control/> docs
Browse files Browse the repository at this point in the history
Addresses davidkpiano#631.
  • Loading branch information
Ralph Sto. Domingo authored and peterox committed Oct 26, 2017
1 parent 7e2b03f commit e830a5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/api/Control.md
Expand Up @@ -5,6 +5,7 @@
- [`model` (required)](#prop-model)
- [`mapProps`](#prop-mapProps)
- [`updateOn`](#prop-updateOn)
- [`defaultValue`](#prop-defaultValue)
- [`debounce`](#prop-debounce)
- [`validators`](#prop-validators)
- [`validateOn`](#prop-validateOn)
Expand Down Expand Up @@ -127,6 +128,12 @@ You can also specify `updateOn={['change', 'blur']}` as an array of one or more
### Notes
- Use the `changeAction` prop if you want to dispatch custom actions along with the `actions.change(...)` action.

## `defaultValue="..."` {#prop-defaultValue}
_(Any)_: Sets the default value for the control. `boolean` for checkboxes, `string` for text input/textarea etc.

### Notes
- https://github.com/davidkpiano/react-redux-form/issues/631

## `validators={{...}}` {#prop-validators}
_(Object)_: A map where the keys are validation keys, and the values are the corresponding functions that determine the validity of each key, given the model's value.

Expand Down

0 comments on commit e830a5b

Please sign in to comment.