@maif/react-forms 1.0.24 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/react-form.js +1 -1
- package/lib/form.js +84 -60
- package/lib/resolvers/utils.js +14 -10
- package/lib/style.d.ts +27 -23
- package/lib/style.js +7 -1
- package/lib/styleContext.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,6 +100,10 @@ export const Example = () => {
|
|
|
100
100
|
```javascript
|
|
101
101
|
({rawValues, value, onChange, error}) => <input type="text" className="is-invalid" value={value} onChange={e => onChange(e.target.value)} />
|
|
102
102
|
```
|
|
103
|
+
- **itemRender**: a function to completely custom the rendering of form field items (Just in case of `array` is true)
|
|
104
|
+
```javascript
|
|
105
|
+
({rawValues, value, onChange, error}) => <input type="text" className="is-invalid" value={value} onChange={e => onChange(e.target.value)} />
|
|
106
|
+
```
|
|
103
107
|
- **props**: a json object merged with default props. For exemple, if format `select` is setup, you can add all [props](https://react-select.com/props) to customize react-select
|
|
104
108
|
- **options**: An array of options for the select field (if format `select` is setup)
|
|
105
109
|
- **optionsFrom**: A url to fetch array of options for the select field (if format `select` is setup)
|