|
1 | 1 | /// <reference path="BEMCheckBox.d.ts" /> Needed for autocompletion and compilation. |
2 | 2 |
|
3 | | -import {CheckBoxInterface} from "./checkbox"; |
| 3 | +import {CheckBoxInterface} from "./"; |
4 | 4 | import { View } from "ui/core/view"; |
5 | 5 | import {ContentView} from "ui/content-view"; |
6 | 6 | import { Property, PropertyChangeData } from "ui/core/dependency-observable"; |
@@ -270,35 +270,3 @@ class BEMCheckBoxDelegateImpl extends NSObject implements BEMCheckBoxDelegate { |
270 | 270 | } |
271 | 271 | } |
272 | 272 | } |
273 | | - |
274 | | -export class CheckBoxStyler implements style.Styler { |
275 | | - private static setBorderColorProperty(view: any, newValue: any) { |
276 | | - if (view.nativeiOSCheckBox){ |
277 | | - try{ |
278 | | - var color = new Color(newValue); |
279 | | - view.nativeiOSCheckBox.tintColor = color.ios; |
280 | | - }catch(error){ |
281 | | - //Do nothing, catch bad color value |
282 | | - } |
283 | | - } |
284 | | - } |
285 | | - |
286 | | - private static setBorderWidthProperty(view: any, newValue: any) { |
287 | | - if (view.nativeiOSCheckBox){ |
288 | | - view.nativeiOSCheckBox.lineWidth = newValue; |
289 | | - } |
290 | | - } |
291 | | - |
292 | | - private static resetColorProperty(view: View, nativeValue: number) { |
293 | | - // Do nothing. |
294 | | - } |
295 | | - |
296 | | - public static registerHandlers() { |
297 | | - style.registerHandler(style.borderColorProperty, new style.StylePropertyChangedHandler(CheckBoxStyler.setBorderColorProperty, CheckBoxStyler.resetColorProperty), "CheckBox"); |
298 | | - /* style.registerHandler(style.borderWidthProperty, new style.StylePropertyChangedHandler(CheckBoxStyler.setBorderWidthProperty, CheckBoxStyler.resetColorProperty), "CheckBox"); */ //removed for 2.4+ |
299 | | - |
300 | | - style.registerHandler(style.borderRadiusProperty, style.ignorePropertyHandler, "CheckBox"); |
301 | | - } |
302 | | -} |
303 | | - |
304 | | -CheckBoxStyler.registerHandlers(); |
0 commit comments