diff options
author | 2021-10-02 09:24:32 +0200 | |
---|---|---|
committer | 2021-10-02 09:24:32 +0200 | |
commit | bfe8847d72cd0893230f2e654242658214943e61 (patch) | |
tree | 3384b02ebad7a74cbb106ddd95546e0e24ff0bb8 /src/lib/Form.js | |
parent | fix: Fix navigation shortcut accelerator for non-macos (fixes #1172) (#2012) (diff) | |
download | ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.tar.gz ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.tar.zst ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.zip |
chore: convert various files from JS to TS (#2010)
Diffstat (limited to 'src/lib/Form.js')
-rw-r--r-- | src/lib/Form.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/Form.js b/src/lib/Form.js deleted file mode 100644 index 9b8321948..000000000 --- a/src/lib/Form.js +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | import Form from 'mobx-react-form'; | ||
2 | |||
3 | export 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, // default: true | ||
25 | // validateOnBlur: true, // default: true | ||
26 | // validateOnChange: true // default: false | ||
27 | // // validationDebounceWait: { | ||
28 | // // trailing: true, | ||
29 | // // }, | ||
30 | }; | ||
31 | } | ||
32 | } | ||