react-formal-inputs
a react-widgets adapter for react-formal
Last updated 4 years ago by monastic.panic .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-formal-inputs 
SYNC missed versions from official npm registry.

a react-widgets adapter for react-formal

  var Form = require('react-formal')
    , types = require('react-formal-inputs')

  Form.addInputTypes(types)

Sets the default component to a react-widget for the relevant builtin input and schema types: 'date', 'time', 'array', in addition it defines the following extra types you can use in <Form.Field type, each corresponds a specific react-widget you wish to use

  • 'combobox'
  • 'dropdownlist'
  • 'multiselect'
  • 'selectlist'
  • 'datepicker'
  • 'timepicker'
  • 'datetimepicker'
  • 'calendar'

Just specify the string type of the widget you want for your field and pass in any additional parameters

<Form.Field 
  name='contact' 
  type='dropdownlist' 
  data={list} 
  valueField='id' 
  textField='name'
/>

Current Tags

  • 2.1.1                                ...           latest (4 years ago)

4 Versions

  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |