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" ;
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"
105
116declare const CGRectMake : any , CGPointMake : any ;
127const checkBoxBackgroundColorProperty = new CssProperty < Style , string > ( {
@@ -21,44 +16,48 @@ const onCheckColorProperty = new CssProperty<Style, string>({
2116 cssName : "on-check-color" ,
2217 defaultValue : "#ffffff" ,
2318 valueConverter : v => {
24- return String ( v ) ;
19+ return String ( v )
2520 }
26- } ) ;
21+ } )
22+
2723const tintColorProperty = new CssProperty < Style , string > ( {
2824 name : "tintColor" ,
2925 cssName : "tint-color" ,
3026 // defaultValue: "#0075ff",
3127 valueConverter : v => {
32- return String ( v ) ;
28+ return String ( v )
3329 }
34- } ) ;
30+ } )
31+
3532const onTintColorProperty = new CssProperty < Style , string > ( {
3633 name : "onTintColor" ,
3734 cssName : "on-tint-color" ,
3835 valueConverter : v => {
39- return String ( v ) ;
36+ return String ( v )
4037 }
41- } ) ;
38+ } )
39+
4240const fillColorProperty = new CssProperty < Style , string > ( {
4341 name : "fillColor" ,
4442 cssName : "fill-color" ,
4543 valueConverter : v => {
46- return String ( v ) ;
44+ return String ( v )
4745 }
48- } ) ;
46+ } )
4947
5048const checkedProperty = new Property < CheckBox , boolean > ( {
5149 name : "checked" ,
5250 defaultValue : false ,
5351 valueConverter : booleanConverter ,
5452 valueChanged : onCheckedPropertyChanged
55- } ) ;
53+ } )
54+
5655export class CheckBox extends Button implements CheckBoxInterface {
57- _onCheckColor : string ;
58- _checkBoxBackgroundColor : any ;
59- _onTintColor : string ;
60- _tintColor : string ;
61- _onFillColor : string ;
56+ _onCheckColor : string
57+ _checkBoxBackgroundColor : any
58+ _onTintColor : string
59+ _tintColor : string
60+ _onFillColor : string
6261 _fillColor : string ;
6362 private _iosCheckbox : BEMCheckBox ;
6463 private _delegate : BEMCheckBoxDelegateImpl ;
0 commit comments