-
Notifications
You must be signed in to change notification settings - Fork 154
/
Copy pathsplit-button-model.d.ts
133 lines (113 loc) · 3.75 KB
/
split-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
import { Event, EmitType, remove, addClass, removeClass, detach, getValue, setValue } from '@syncfusion/ej2-base';import { EventHandler, Collection, BaseEventArgs, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { attributes, getUniqueID, getInstance, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Button, ButtonModel } from '@syncfusion/ej2-buttons';import { MenuEventArgs, BeforeOpenCloseMenuEventArgs, OpenCloseMenuEventArgs } from './../common/common';import { getModel, SplitButtonIconPosition, Item } from './../common/common';import { DropDownButton } from '../drop-down-button/drop-down-button';import { ItemModel } from './../common/common-model';
import {ClickEventArgs} from "./split-button";
import {DropDownButtonModel} from "../drop-down-button/drop-down-button-model";
/**
* Interface for a class SplitButton
*/
export interface SplitButtonModel extends DropDownButtonModel{
/**
* Defines the content of the SplitButton primary action button can either be a text or HTML elements.
*
* @default ""
*/
content?: string;
/**
* Defines class/multiple classes separated by a space in the SplitButton element. The SplitButton
* size and styles can be customized by using this.
*
* @default ""
*/
cssClass?: string;
/**
* Specifies a value that indicates whether the SplitButton is disabled or not.
*
* @default false.
*/
disabled?: boolean;
/**
* Defines class/multiple classes separated by a space for the SplitButton that is used to include an
* icon. SplitButton can also include font icon and sprite image.
*
* @default ""
*/
iconCss?: string;
/**
* Positions the icon before/top of the text content in the SplitButton. The possible values are
* * Left: The icon will be positioned to the left of the text content.
* * Top: The icon will be positioned to the top of the text content.
*
* @default "Left"
*/
iconPosition?: SplitButtonIconPosition;
/**
* Specifies the popup element creation on open.
*
* @default false
*/
createPopupOnClick?: boolean;
/**
* Specifies action items with its properties which will be rendered as SplitButton secondary button popup.
*
* @default []
*/
items?: ItemModel[];
/**
* Allows to specify the SplitButton popup item element.
*
* @default ""
*/
target?: string | Element;
/**
* Triggers while rendering each Popup item of SplitButton.
*
* @event beforeItemRender
*/
beforeItemRender?: EmitType<MenuEventArgs>;
/**
* Triggers before opening the SplitButton popup.
*
* @event beforeOpen
*/
beforeOpen?: EmitType<BeforeOpenCloseMenuEventArgs>;
/**
* Triggers before closing the SplitButton popup.
*
* @event beforeClose
*/
beforeClose?: EmitType<BeforeOpenCloseMenuEventArgs>;
/**
* Triggers when the primary button of SplitButton has been clicked.
*
* @event click
*/
click?: EmitType<ClickEventArgs>;
/**
* Triggers while closing the SplitButton popup.
*
* @event close
*/
close?: EmitType<OpenCloseMenuEventArgs>;
/**
* Triggers while opening the SplitButton popup.
*
* @event open
*/
open?: EmitType<OpenCloseMenuEventArgs>;
/**
* Triggers while selecting action item of SplitButton popup.
*
* @event select
*/
select?: EmitType<MenuEventArgs>;
/**
* Triggers once the component rendering is completed.
*
* @event created
*/
created?: EmitType<Event>;
}
/**
* Interface for a class Deferred
*/
export interface DeferredModel {
}