stylers updated with get methods

This commit is contained in:
Vladimir Enchev
2015-11-03 10:48:16 +02:00
parent 48973e2669
commit 7ce26ee542

View File

@ -826,10 +826,16 @@ export class DatePickerStyler implements definition.stylers.Styler {
picker.setValueForKey(nativeValue, "textColor");
}
private static getColorProperty(view: view.View): any {
var picker = <UIDatePicker>view._nativeView;
return picker.valueForKey("textColor");
}
public static registerHandlers() {
style.registerHandler(style.colorProperty, new stylersCommon.StylePropertyChangedHandler(
DatePickerStyler.setColorProperty,
DatePickerStyler.resetColorProperty), "DatePicker");
DatePickerStyler.resetColorProperty,
DatePickerStyler.getColorProperty), "DatePicker");
}
}
@ -845,10 +851,16 @@ export class TimePickerStyler implements definition.stylers.Styler {
picker.setValueForKey(nativeValue, "textColor");
}
private static getColorProperty(view: view.View): any {
var picker = <UIDatePicker>view._nativeView;
return picker.valueForKey("textColor");
}
public static registerHandlers() {
style.registerHandler(style.colorProperty, new stylersCommon.StylePropertyChangedHandler(
TimePickerStyler.setColorProperty,
TimePickerStyler.resetColorProperty), "TimePicker");
TimePickerStyler.resetColorProperty,
TimePickerStyler.getColorProperty), "TimePicker");
}
}