-
Notifications
You must be signed in to change notification settings - Fork 158
/
Copy pathprogress-button-model.d.ts
206 lines (177 loc) · 5.57 KB
/
progress-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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
import { Button, IconPosition } from '@syncfusion/ej2-buttons';import { EventHandler, Property, INotifyPropertyChanged, NotifyPropertyChanges, Animation, Effect, attributes, animationMode } from '@syncfusion/ej2-base';import { EmitType, Event, BaseEventArgs, remove, removeClass } from '@syncfusion/ej2-base';import { Complex, ChildProperty, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
import {SpinPosition,AnimationEffect,ProgressEventArgs} from "./progress-button";
/**
* Interface for a class SpinSettings
*/
export interface SpinSettingsModel {
/**
* Specifies the template content to be displayed in a spinner.
*
* @default null
* @aspType string
*/
template?: string | Function;
/**
* Sets the width of a spinner.
*
* @default '16'
*/
width?: string | number;
/**
* Specifies the position of a spinner in the progress button. The possible values are:
* * Left: The spinner will be positioned to the left of the text content.
* * Right: The spinner will be positioned to the right of the text content.
* * Top: The spinner will be positioned at the top of the text content.
* * Bottom: The spinner will be positioned at the bottom of the text content.
* * Center: The spinner will be positioned at the center of the progress button.
*
* @default 'Left'
* @aspType Syncfusion.EJ2.SplitButtons.SpinPosition
* @blazorType Syncfusion.Blazor.SplitButtons.SpinPosition
* @isEnumeration true
*/
position?: SpinPosition;
}
/**
* Interface for a class AnimationSettings
*/
export interface AnimationSettingsModel {
/**
* Specifies the duration taken to animate.
*
* @default 400
*/
duration?: number;
/**
* Specifies the effect of animation.
*
* @default 'None'
* @aspType Syncfusion.EJ2.SplitButtons.AnimationEffect
* @blazorType Syncfusion.Blazor.SplitButtons.AnimationEffect
* @isEnumeration true
*/
effect?: AnimationEffect;
/**
* Specifies the animation timing function.
*
* @default 'ease'
*/
easing?: string;
}
/**
* Interface for a class ProgressButton
*/
export interface ProgressButtonModel {
/**
* Enables or disables the background filler UI in the progress button.
*
* @default false
*/
enableProgress?: boolean;
/**
* Specifies the duration of progression in the progress button.
*
* @default 2000
*/
duration?: number;
/**
* Positions an icon in the progress button. The possible values are:
* * Left: The icon will be positioned to the left of the text content.
* * Right: The icon will be positioned to the right of the text content.
* * Top: The icon will be positioned at the top of the text content.
* * Bottom: The icon will be positioned at the bottom of the text content.
*
* @isenumeration true
* @default Syncfusion.EJ2.Buttons.IconPosition.Left
* @asptype Syncfusion.EJ2.Buttons.IconPosition
*/
iconPosition?: string | IconPosition;
/**
* Defines class/multiple classes separated by a space for the progress button that is used to include an icon.
* Progress button can also include font icon and sprite image.
*
* @default ""
*/
iconCss?: string;
/**
* Enables or disables the progress button.
*
* @default false.
*/
disabled?: boolean;
/**
* Allows the appearance of the progress button to be enhanced and visually appealing when set to `true`.
*
* @default false
*/
isPrimary?: boolean;
/**
* Specifies the root CSS class of the progress button that allows customization of component’s appearance.
* The progress button types, styles, and size can be achieved by using this property.
*
* @default ""
*/
cssClass?: string;
/**
* Defines the text `content` of the progress button element.
*
* @default ""
*/
content?: string;
/**
* Makes the progress button toggle, when set to `true`. When you click it, the state changes from normal to active.
*
* @default false
*/
isToggle?: boolean;
/**
* Specifies whether to enable the rendering of untrusted HTML values in the Progress button component.
* If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
*
* @default true
*/
enableHtmlSanitizer?: boolean;
/**
* Specifies a spinner and its related properties.
*/
spinSettings?: SpinSettingsModel;
/**
* Specifies the animation settings.
*/
animationSettings?: AnimationSettingsModel;
/**
* Triggers once the component rendering is completed.
*
* @event created
* @blazorProperty 'Created'
*/
created?: EmitType<Event>;
/**
* Triggers when the progress starts.
*
* @event begin
* @blazorProperty 'OnBegin'
*/
begin?: EmitType<ProgressEventArgs>;
/**
* Triggers in specified intervals.
*
* @event progress
* @blazorProperty 'Progressing'
*/
progress?: EmitType<ProgressEventArgs>;
/**
* Triggers when the progress is completed.
*
* @event end
* @blazorProperty 'OnEnd'
*/
end?: EmitType<ProgressEventArgs>;
/**
* Triggers when the progress is incomplete.
*
* @event fail
* @blazorProperty 'OnFailure'
*/
fail?: EmitType<Event>;
}