chore: format

This commit is contained in:
Nathan Walker
2020-07-05 14:57:06 -07:00
parent 8f2900ad0b
commit da3c0b973d
379 changed files with 71587 additions and 54582 deletions

View File

@@ -6,24 +6,37 @@ import { Switch as SwitchDefinition } from ".";
@CSSType("Switch")
export class SwitchBase extends View implements SwitchDefinition {
public static checkedChangeEvent = "checkedChange";
public static checkedChangeEvent = "checkedChange";
public checked: boolean;
public offBackgroundColor: Color;
public checked: boolean;
public offBackgroundColor: Color;
_onCheckedPropertyChanged(newValue: boolean) {
//
}
_onCheckedPropertyChanged(newValue: boolean) {
//
}
}
SwitchBase.prototype.recycleNativeView = "auto";
function onCheckedPropertyChanged(switchBase: SwitchBase, oldValue: boolean, newValue: boolean) {
switchBase._onCheckedPropertyChanged(newValue);
function onCheckedPropertyChanged(
switchBase: SwitchBase,
oldValue: boolean,
newValue: boolean
) {
switchBase._onCheckedPropertyChanged(newValue);
}
export const checkedProperty = new Property<SwitchBase, boolean>({ name: "checked", defaultValue: false, valueConverter: booleanConverter, valueChanged: onCheckedPropertyChanged });
export const checkedProperty = new Property<SwitchBase, boolean>({
name: "checked",
defaultValue: false,
valueConverter: booleanConverter,
valueChanged: onCheckedPropertyChanged,
});
checkedProperty.register(SwitchBase);
export const offBackgroundColorProperty = new Property<SwitchBase, Color>({ name: "offBackgroundColor", equalityComparer: Color.equals, valueConverter: (v) => new Color(v) });
export const offBackgroundColorProperty = new Property<SwitchBase, Color>({
name: "offBackgroundColor",
equalityComparer: Color.equals,
valueConverter: (v) => new Color(v),
});
offBackgroundColorProperty.register(SwitchBase);