Files
Rossen Hristov f303a74570 Fixed Switch
2016-12-22 16:50:45 +02:00

12 lines
435 B
TypeScript

import { Switch as SwitchDefinition } from "ui/switch";
import { View, Property, booleanConverter } from "ui/core/view";
export * from "ui/core/view";
export class SwitchBase extends View implements SwitchDefinition {
public checked: boolean;
}
export const checkedProperty = new Property<SwitchBase, boolean>({ name: "checked", defaultValue: false, valueConverter: booleanConverter });
checkedProperty.register(SwitchBase);