-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathsplitter-model.d.ts
236 lines (205 loc) · 6.53 KB
/
splitter-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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
import { Component, Property, setStyleAttribute, ChildProperty, compile } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, addClass, Collection, isNullOrUndefined } from '@syncfusion/ej2-base';import { Event, EmitType, EventHandler, selectAll, removeClass, select, Browser, detach, formatUnit } from '@syncfusion/ej2-base';import { SanitizeHtmlHelper, extend } from '@syncfusion/ej2-base';
import {Orientation,BeforeSanitizeHtmlArgs,ResizeEventArgs,ResizingEventArgs,BeforeExpandEventArgs,ExpandedEventArgs} from "./splitter";
import {ComponentModel} from '@syncfusion/ej2-base';
/**
* Interface for a class PaneProperties
*/
export interface PanePropertiesModel {
/**
* Configures the properties for each pane.
*
* @default ''
*/
size?: string;
/**
* Specifies whether a pane is collapsible or not collapsible.
*
* {% codeBlock src='splitter/collapsible/index.md' %}{% endcodeBlock %}
*
* @default false
*/
collapsible?: boolean;
/**
* Specifies whether a pane is collapsed or not collapsed at the initial rendering of splitter.
*
* {% codeBlock src='splitter/collapsed/index.md' %}{% endcodeBlock %}
*
* @default false
*/
collapsed?: boolean;
/**
* Specifies the value whether a pane is resizable. By default, the Splitter is resizable in all panes.
* You can disable this for any specific panes using this property.
*
* @default true
*/
resizable?: boolean;
/**
* Specifies the minimum size of a pane. The pane cannot be resized if it is less than the specified minimum size.
*
* @default null
*/
min?: string;
/**
* Specifies the maximum size of a pane. The pane cannot be resized if it is more than the specified maximum limit.
*
* @default null
*/
max?: string;
/**
* Specifies the content of split pane as plain text, HTML markup, or any other JavaScript controls.
*
* @default ''
* @blazorType string
*/
content?: string | HTMLElement;
/**
* Specifies the CSS class names that defines specific user-defined
* styles and themes to be appended on corresponding pane of the Splitter.
* It is used to customize the Splitter control panes.
* One or more custom CSS classes can be specified to the Splitter panes.
*
* @default ''
*/
cssClass?: string;
}
/**
* Interface for a class Splitter
*/
export interface SplitterModel extends ComponentModel{
/**
* Specifies the height of the Splitter component that accepts both string and number values.
*
* @default '100%'
*/
height?: string;
/**
* Specifies the value whether splitter panes are reordered or not .
*
* @default true
*/
enableReversePanes?: boolean;
/**
* Specifies the width of the Splitter control, which accepts both string and number values as width.
* The string value can be either in pixel or percentage format.
*
* @default '100%'
*/
width?: string;
/**
* Enables or disables the persisting component's state between page reloads.
*
* @default false
*/
enablePersistence?: boolean;
/**
* Configures the individual pane behaviors such as content, size, resizable, minimum, maximum validation, collapsible and collapsed.
*
* {% codeBlock src='splitter/panesettings/index.md' %}{% endcodeBlock %}
*
* @default []
*/
paneSettings?: PanePropertiesModel[];
/**
* Specifies a value that indicates whether to align the split panes horizontally or vertically.
* * Set the orientation property as "Horizontal" to create a horizontal splitter that aligns the panes left-to-right.
* * Set the orientation property as "Vertical" to create a vertical splitter that aligns the panes top-to-bottom.
*
* {% codeBlock src='splitter/orientation/index.md' %}{% endcodeBlock %}
*
* @default Horizontal
*/
orientation?: Orientation;
/**
* Specifies the CSS class names that defines specific user-defined
* styles and themes to be appended on the root element of the Splitter.
* It is used to customize the Splitter control.
* One or more custom CSS classes can be specified to the Splitter.
*
* @default ''
*/
cssClass?: string;
/**
* Specifies boolean value that indicates whether the component is enabled or disabled.
* The Splitter component does not allow to interact when this property is disabled.
*
* @default true
*/
enabled?: boolean;
/**
* Defines whether to allow the cross-scripting site or not.
*
* @default true
*/
enableHtmlSanitizer?: boolean;
/**
* Specifies the size of the separator line for both horizontal or vertical orientation.
* The separator is used to separate the panes by lines.
*
* @default null
*/
separatorSize?: number;
/**
* Event triggers before sanitize the value.
*
* @event 'event'
* @blazorProperty 'OnSanitizeHtml'
*/
beforeSanitizeHtml?: EmitType<BeforeSanitizeHtmlArgs>;
/**
* Triggers after creating the splitter component with its panes.
*
* @event 'event'
* @blazorProperty 'Created'
*/
created?: EmitType<Object>;
/**
* Triggers when the split pane is started to resize.
*
* @event 'event'
* @blazorProperty 'OnResizeStart'
*/
resizeStart?: EmitType<ResizeEventArgs>;
/**
* Triggers when a split pane is being resized.
*
* @event 'event'
* @blazorProperty 'Resizing'
*/
resizing?: EmitType<ResizingEventArgs>;
/**
* Triggers when the resizing of split pane is stopped.
*
* @event 'event'
* @blazorProperty 'OnResizeStop'
*/
resizeStop?: EmitType<ResizingEventArgs>;
/**
* Triggers when before panes get collapsed.
*
* @event 'event'
* @blazorProperty 'OnCollapse'
*/
beforeCollapse?: EmitType<BeforeExpandEventArgs>;
/**
* Triggers when before panes get expanded.
*
* @event 'event'
* @blazorProperty 'OnExpand'
*/
beforeExpand?: EmitType<BeforeExpandEventArgs>;
/**
* Triggers when after panes get collapsed.
*
* @event 'event'
* @blazorProperty 'Collapsed'
*/
collapsed?: EmitType<ExpandedEventArgs>;
/**
* Triggers when after panes get expanded.
*
* @event 'event'
* @blazorProperty 'Expanded'
*/
expanded?: EmitType<ExpandedEventArgs>;
}