forked from nstudio/nativescript-checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
32 lines (27 loc) · 801 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { View } from "tns-core-modules/ui/core/view";
/**
* Represents a CheckBox component.
*/
export declare class CheckBox extends View {
/**
* Gets the native [android widget](https://developer.android.com/reference/android/widget/CheckBox.html) that represents the user interface for this component. Valid only when running on Android OS.
*/
android: any /* android.widget.CheckBox */;
/**
* Gets the ios Label with the checkbox as a subview
*/
ios: any /* Label */;
/**
* Gets or sets if a switch is checked or not.
*/
checked: boolean;
/**
* Change the checked state of the view to the inverse of its current state.
*/
toggle(): void;
}
export interface CheckBoxInterface {
text?: string;
checked: boolean;
toggle(): void;
}