forked from syncfusion/ej2-javascript-ui-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck-box-model.d.ts
105 lines (91 loc) · 3.25 KB
/
check-box-model.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property, setValue } from '@syncfusion/ej2-base';import { EmitType, Event, EventHandler, isNullOrUndefined, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { addClass, detach, getUniqueID, isRippleEnabled, removeClass, rippleEffect, closest } from '@syncfusion/ej2-base';import { wrapperInitialize, rippleMouseHandler, ChangeEventArgs, setHiddenInput } from './../common/common';
import {LabelPosition} from "./check-box";
import {ComponentModel} from '@syncfusion/ej2-base';
/**
* Interface for a class CheckBox
*/
export interface CheckBoxModel extends ComponentModel{
/**
* Triggers when the CheckBox state has been changed by user interaction.
*
* @event change
*/
change?: EmitType<ChangeEventArgs>;
/**
* Triggers once the component rendering is completed.
*
* @event created
*/
created?: EmitType<Event>;
/**
* Specifies a value that indicates whether the CheckBox is `checked` or not.
* When set to `true`, the CheckBox will be in `checked` state.
*
* @default false
*/
checked?: boolean;
/**
* Defines class/multiple classes separated by a space in the CheckBox element.
* You can add custom styles to the CheckBox by using this property.
*
* @default ''
*/
cssClass?: string;
/**
* Specifies a value that indicates whether the CheckBox is `disabled` or not.
* When set to `true`, the CheckBox will be in `disabled` state.
*
* @default false
*/
disabled?: boolean;
/**
* Specifies a value that indicates whether the CheckBox is in `indeterminate` state or not.
* When set to `true`, the CheckBox will be in `indeterminate` state.
*
* @default false
*/
indeterminate?: boolean;
/**
* Defines the caption for the CheckBox, that describes the purpose of the CheckBox.
*
* @default ''
*/
label?: string;
/**
* Positions label `before`/`after` the CheckBox.
* The possible values are:
* * Before - The label is positioned to left of the CheckBox.
* * After - The label is positioned to right of the CheckBox.
*
* @default 'After'
*/
labelPosition?: LabelPosition;
/**
* Defines `name` attribute for the CheckBox.
* It is used to reference form data (CheckBox value) after a form is submitted.
*
* @default ''
*/
name?: string;
/**
* Defines `value` attribute for the CheckBox.
* It is a form data passed to the server when submitting the form.
*
* @default ''
*/
value?: string;
/**
* Specifies whether to enable the rendering of untrusted HTML values in the CheckBox component.
* If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
*
* @default true
*/
enableHtmlSanitizer?: boolean;
/**
* You can add the additional html attributes such as disabled, value etc., to the element.
* If you configured both property and equivalent html attribute then the component considers the property value.
*
* @default {}
*/
htmlAttributes?: { [key: string]: string; };
}