1
- import { CheckBoxInterface } from "./index"
2
- import { Property , CssProperty , Style , booleanConverter } from "tns-core-modules/ui/core/view"
3
- import { Color } from "tns-core-modules/color"
4
- import { Button } from "tns-core-modules/ui/button"
1
+ import { CheckBoxInterface } from "./index" ;
2
+ import {
3
+ Property ,
4
+ CssProperty ,
5
+ Style ,
6
+ booleanConverter
7
+ } from "tns-core-modules/ui/core/view" ;
8
+ import { Color } from "tns-core-modules/color" ;
9
+ import { Button } from "tns-core-modules/ui/button" ;
5
10
6
11
declare const CGRectMake : any , CGPointMake : any ;
7
12
const checkBoxBackgroundColorProperty = new CssProperty < Style , string > ( {
@@ -16,48 +21,48 @@ const onCheckColorProperty = new CssProperty<Style, string>({
16
21
cssName : "on-check-color" ,
17
22
defaultValue : "#ffffff" ,
18
23
valueConverter : v => {
19
- return String ( v )
24
+ return String ( v ) ;
20
25
}
21
- } )
26
+ } ) ;
22
27
23
28
const tintColorProperty = new CssProperty < Style , string > ( {
24
29
name : "tintColor" ,
25
30
cssName : "tint-color" ,
26
31
// defaultValue: "#0075ff",
27
32
valueConverter : v => {
28
- return String ( v )
33
+ return String ( v ) ;
29
34
}
30
- } )
35
+ } ) ;
31
36
32
37
const onTintColorProperty = new CssProperty < Style , string > ( {
33
38
name : "onTintColor" ,
34
39
cssName : "on-tint-color" ,
35
40
valueConverter : v => {
36
- return String ( v )
41
+ return String ( v ) ;
37
42
}
38
- } )
43
+ } ) ;
39
44
40
45
const fillColorProperty = new CssProperty < Style , string > ( {
41
46
name : "fillColor" ,
42
47
cssName : "fill-color" ,
43
48
valueConverter : v => {
44
- return String ( v )
49
+ return String ( v ) ;
45
50
}
46
- } )
51
+ } ) ;
47
52
48
53
const checkedProperty = new Property < CheckBox , boolean > ( {
49
54
name : "checked" ,
50
55
defaultValue : false ,
51
56
valueConverter : booleanConverter ,
52
57
valueChanged : onCheckedPropertyChanged
53
- } )
58
+ } ) ;
54
59
55
60
export class CheckBox extends Button implements CheckBoxInterface {
56
- _onCheckColor : string
57
- _checkBoxBackgroundColor : any
58
- _onTintColor : string
59
- _tintColor : string
60
- _onFillColor : string
61
+ _onCheckColor : string ;
62
+ _checkBoxBackgroundColor : any ;
63
+ _onTintColor : string ;
64
+ _tintColor : string ;
65
+ _onFillColor : string ;
61
66
_fillColor : string ;
62
67
private _iosCheckbox : BEMCheckBox ;
63
68
private _delegate : BEMCheckBoxDelegateImpl ;
0 commit comments