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

17 lines
439 B
TypeScript
Raw Normal View History

import { View } from "../ui/view";
2020-03-13 13:01:21 +08:00
import { Color } from "../util/color";
export declare class Switch extends View {
2020-03-13 13:01:21 +08:00
/**
* 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;