-
Notifications
You must be signed in to change notification settings - Fork 153
/
radio-button-model.d.ts
97 lines (84 loc) · 3.09 KB
/
radio-button-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
import { Component, INotifyPropertyChanged, rippleEffect, NotifyPropertyChanges, Property, closest, setValue } from '@syncfusion/ej2-base';import { addClass, getInstance, getUniqueID, isRippleEnabled, removeClass, attributes, isNullOrUndefined } from '@syncfusion/ej2-base';import { BaseEventArgs, detach, EmitType, Event, EventHandler, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { wrapperInitialize, rippleMouseHandler } from './../common/common';
import {ChangeArgs,RadioLabelPosition} from "./radio-button";
import {ComponentModel} from '@syncfusion/ej2-base';
/**
* Interface for a class RadioButton
*/
export interface RadioButtonModel extends ComponentModel{
/**
* Event trigger when the RadioButton state has been changed by user interaction.
*
* @event change
*/
change?: EmitType<ChangeArgs>;
/**
* Triggers once the component rendering is completed.
*
* @event created
*/
created?: EmitType<Event>;
/**
* Specifies a value that indicates whether the RadioButton is `checked` or not.
* When set to `true`, the RadioButton will be in `checked` state.
*
* @default false
*/
checked?: boolean;
/**
* Defines class/multiple classes separated by a space in the RadioButton element.
* You can add custom styles to the RadioButton by using this property.
*
* @default ''
*/
cssClass?: string;
/**
* Specifies a value that indicates whether the RadioButton is `disabled` or not.
* When set to `true`, the RadioButton will be in `disabled` state.
*
* @default false
*/
disabled?: boolean;
/**
* Defines the caption for the RadioButton, that describes the purpose of the RadioButton.
*
* @default ''
*/
label?: string;
/**
* Positions label `before`/`after` the RadioButton.
* The possible values are:
* * Before: The label is positioned to left of the RadioButton.
* * After: The label is positioned to right of the RadioButton.
*
* @default 'After'
*/
labelPosition?: RadioLabelPosition;
/**
* Defines `name` attribute for the RadioButton.
* It is used to reference form data (RadioButton value) after a form is submitted.
*
* @default ''
*/
name?: string;
/**
* Defines `value` attribute for the RadioButton.
* 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 Radio Button 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; };
}