This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/lib/src/widget/switch.d.ts
2020-04-16 19:28:23 +08:00

17 lines
439 B
TypeScript

import { View } from "../ui/view";
import { Color } from "../util/color";
export declare class Switch extends View {
/**
* True is on ,false is off,defalut is off.
*/
state?: boolean;
/**
* Switch change callback
*/
onSwitch?: (state: boolean) => void;
offTintColor?: Color;
onTintColor?: Color;
thumbTintColor?: Color;
}
export declare function switchView(config: Partial<Switch>): Switch;