blob: 84810702063fafb67109517e0074dcc73f6f28c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
import BaseInput from './baseInput'
const BaseFormControl = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
const Default = {
requiredClasses: ['form-control']
}
/**
* ------------------------------------------------------------------------
* Class Definition
* ------------------------------------------------------------------------
*/
class BaseFormControl extends BaseInput {
constructor($element, config) {
super($element, $.extend(true, Default, config))
// Initially mark as empty
if (this.isEmpty()) {
this.removeIsFilled()
}
}
}
return BaseFormControl
})(jQuery)
export default BaseFormControl
|