aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Form.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Form.js')
-rw-r--r--src/lib/Form.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/Form.js b/src/lib/Form.js
new file mode 100644
index 000000000..a22699b45
--- /dev/null
+++ b/src/lib/Form.js
@@ -0,0 +1,31 @@
1import Form from 'mobx-react-form';
2
3export default class DefaultForm extends Form {
4 bindings() {
5 return {
6 default: {
7 id: 'id',
8 name: 'name',
9 type: 'type',
10 value: 'value',
11 label: 'label',
12 placeholder: 'placeholder',
13 disabled: 'disabled',
14 onChange: 'onChange',
15 onFocus: 'onFocus',
16 onBlur: 'onBlur',
17 error: 'error',
18 },
19 };
20 }
21
22 options() {
23 return {
24 validateOnInit: false,
25 // validateOnBlur: true,
26 // // validationDebounceWait: {
27 // // trailing: true,
28 // // },
29 };
30 }
31}