-
Notifications
You must be signed in to change notification settings - Fork 3
/
btnswitch.d.ts
59 lines (58 loc) · 1.33 KB
/
btnswitch.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
type btnSwitchThemeType = 'Button'|'Light'|'Swipe'|'iOS'|'Android';
interface btnswitch {
/**
* Select a theme (Button, Light, Swipe, iOS, Android)
* @default Button
*/
Theme?: btnSwitchThemeType;
/**
* What to display for the "On" Button
* @default On
*/
OnText?: string;
/**
* What to display for the "Off" Button
* @default Off
*/
OffText?: string;
/**
* The value of the "On" Button
* @default true
*/
OnValue?: string;
/**
* The value of the "Off" Button
* @default false
*/
OffValue?: string;
/**
* Callback on "On" selection
* @default null
*/
OnCallback?: Function;
/**
* Callback on "Off" selection
* @default null
*/
OffCallback?: Function;
/**
* Set the state of the switch toggle
* @default false
*/
ToggleState?: boolean;
/**
* Determines if we should confirm any changes
* @default false
*/
ConfirmChanges?: boolean;
/**
* What message we'll display to the user when ConfirmChanges is set to true
* @default Are you sure?
*/
ConfirmText?: string;
/**
* the hidden field the plugin should populate or false to not populate a hidden field
* @default false
*/
HiddenInputId?: string | boolean
}