aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Form.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-10-13 12:29:40 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-10-13 12:29:40 +0200
commit58cda9cc7fb79ca9df6746de7f9662bc08dc156a (patch)
tree1211600c2a5d3b5f81c435c6896618111a611720 /src/lib/Form.js
downloadferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.tar.gz
ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.tar.zst
ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.zip
initial commit
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}