@progress/kendo-angular-buttons 19.1.1-develop.2 → 19.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/button.component.d.ts +26 -22
- package/button/button.module.d.ts +8 -18
- package/button/selection-settings.d.ts +4 -1
- package/buttongroup/buttongroup.component.d.ts +22 -18
- package/buttongroup/buttongroup.module.d.ts +18 -1
- package/buttons.module.d.ts +3 -13
- package/chip/chip-list.component.d.ts +19 -13
- package/chip/chip.component.d.ts +32 -46
- package/chip/chip.module.d.ts +8 -15
- package/chip/models/avatar-settings.interface.d.ts +9 -9
- package/chip/models/selection.d.ts +0 -1
- package/common/models/arrow-settings.d.ts +4 -4
- package/common/models/fillmode.d.ts +2 -2
- package/common/models/rounded.d.ts +2 -2
- package/common/models/size.d.ts +2 -3
- package/common/models/theme-color.d.ts +20 -19
- package/directives.d.ts +88 -8
- package/dropdownbutton/dropdownbutton.component.d.ts +38 -76
- package/dropdownbutton/dropdownbutton.module.d.ts +20 -4
- package/esm2022/button/button.component.mjs +28 -24
- package/esm2022/button/button.module.mjs +8 -18
- package/esm2022/buttongroup/buttongroup.component.mjs +22 -18
- package/esm2022/buttongroup/buttongroup.module.mjs +18 -1
- package/esm2022/buttons.module.mjs +3 -13
- package/esm2022/chip/chip-list.component.mjs +19 -13
- package/esm2022/chip/chip.component.mjs +34 -48
- package/esm2022/chip/chip.module.mjs +8 -15
- package/esm2022/directives.mjs +88 -8
- package/esm2022/dropdownbutton/dropdownbutton.component.mjs +38 -76
- package/esm2022/dropdownbutton/dropdownbutton.module.mjs +20 -4
- package/esm2022/floatingactionbutton/floatingactionbutton.component.mjs +33 -75
- package/esm2022/floatingactionbutton/floatingactionbutton.module.mjs +9 -17
- package/esm2022/floatingactionbutton/templates/dial-item-template.directive.mjs +12 -4
- package/esm2022/floatingactionbutton/templates/fab-template.directive.mjs +12 -3
- package/esm2022/listbutton/button-item-template.directive.mjs +15 -37
- package/esm2022/listbutton/list-button.mjs +12 -14
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/splitbutton/localization/custom-messages.component.mjs +2 -2
- package/esm2022/splitbutton/localization/messages.mjs +14 -15
- package/esm2022/splitbutton/splitbutton.component.mjs +35 -135
- package/esm2022/splitbutton/splitbutton.module.mjs +3 -2
- package/fesm2022/progress-kendo-angular-buttons.mjs +435 -544
- package/floatingactionbutton/floatingactionbutton.component.d.ts +33 -75
- package/floatingactionbutton/floatingactionbutton.module.d.ts +9 -16
- package/floatingactionbutton/models/align.d.ts +6 -1
- package/floatingactionbutton/models/item-animation.interface.d.ts +6 -1
- package/floatingactionbutton/models/item-click.event.d.ts +8 -1
- package/floatingactionbutton/models/item.interface.d.ts +6 -6
- package/floatingactionbutton/models/offset.d.ts +7 -2
- package/floatingactionbutton/models/position-mode.d.ts +5 -5
- package/floatingactionbutton/templates/dial-item-template.directive.d.ts +12 -4
- package/floatingactionbutton/templates/fab-template.directive.d.ts +12 -3
- package/listbutton/button-item-template.directive.d.ts +15 -37
- package/listbutton/list-button.d.ts +12 -14
- package/listbutton/list-item-model.d.ts +12 -24
- package/listbutton/popup-settings.d.ts +17 -12
- package/package.json +7 -7
- package/splitbutton/localization/custom-messages.component.d.ts +2 -2
- package/splitbutton/localization/messages.d.ts +14 -15
- package/splitbutton/splitbutton.component.d.ts +35 -135
- package/splitbutton/splitbutton.module.d.ts +2 -1
|
@@ -4,44 +4,49 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ViewContainerRef } from '@angular/core';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Configures the popup settings.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```ts
|
|
11
|
-
*
|
|
11
|
+
* @Component({
|
|
12
12
|
* selector: 'my-app',
|
|
13
13
|
* template: `
|
|
14
|
-
* <kendo-splitbutton [data]="
|
|
14
|
+
* <kendo-splitbutton [data]="items" [popupSettings]="popupSettings">
|
|
15
15
|
* SplitButton
|
|
16
16
|
* </kendo-splitbutton>
|
|
17
17
|
* `
|
|
18
18
|
* })
|
|
19
19
|
* class AppComponent {
|
|
20
|
-
* public
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* public popupSettings: PopupSettings = {
|
|
21
|
+
* popupClass: 'customClass',
|
|
22
|
+
* align: 'center',
|
|
23
|
+
* };
|
|
24
|
+
* public items: Array<any> = [{
|
|
23
25
|
* text: 'item1'
|
|
24
|
-
*
|
|
26
|
+
* }, {
|
|
25
27
|
* text: 'item2'
|
|
26
|
-
*
|
|
28
|
+
* }];
|
|
27
29
|
* }
|
|
28
30
|
* ```
|
|
29
31
|
*/
|
|
30
32
|
export interface PopupSettings {
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
34
|
+
* Enables or disables the popup animation.
|
|
35
|
+
* By default, the open and close animations are enabled.
|
|
33
36
|
*/
|
|
34
37
|
animate?: boolean;
|
|
35
38
|
/**
|
|
36
|
-
* Specifies
|
|
39
|
+
* Specifies CSS classes for styling the popup.
|
|
37
40
|
*/
|
|
38
41
|
popupClass?: string;
|
|
39
42
|
/**
|
|
40
|
-
*
|
|
43
|
+
* Specifies the container for the popup.
|
|
44
|
+
* By default, the popup is appended to the root component.
|
|
41
45
|
*/
|
|
42
46
|
appendTo?: 'root' | 'component' | ViewContainerRef;
|
|
43
47
|
/**
|
|
44
|
-
*
|
|
48
|
+
* Specifies the alignment of the popup.
|
|
49
|
+
* By default, the popup is left-aligned.
|
|
45
50
|
*/
|
|
46
51
|
align?: 'left' | 'center' | 'right';
|
|
47
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-buttons",
|
|
3
|
-
"version": "19.1.1
|
|
3
|
+
"version": "19.1.1",
|
|
4
4
|
"description": "Buttons Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"package": {
|
|
22
22
|
"productName": "Kendo UI for Angular",
|
|
23
23
|
"productCode": "KENDOUIANGULAR",
|
|
24
|
-
"publishDate":
|
|
24
|
+
"publishDate": 1749539933,
|
|
25
25
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"@angular/core": "16 - 20",
|
|
32
32
|
"@angular/platform-browser": "16 - 20",
|
|
33
33
|
"@progress/kendo-licensing": "^1.5.0",
|
|
34
|
-
"@progress/kendo-angular-common": "19.1.1
|
|
35
|
-
"@progress/kendo-angular-l10n": "19.1.1
|
|
36
|
-
"@progress/kendo-angular-popup": "19.1.1
|
|
37
|
-
"@progress/kendo-angular-icons": "19.1.1
|
|
34
|
+
"@progress/kendo-angular-common": "19.1.1",
|
|
35
|
+
"@progress/kendo-angular-l10n": "19.1.1",
|
|
36
|
+
"@progress/kendo-angular-popup": "19.1.1",
|
|
37
|
+
"@progress/kendo-angular-icons": "19.1.1",
|
|
38
38
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"tslib": "^2.3.1",
|
|
42
|
-
"@progress/kendo-angular-schematics": "19.1.1
|
|
42
|
+
"@progress/kendo-angular-schematics": "19.1.1",
|
|
43
43
|
"@progress/kendo-common": "^1.0.1"
|
|
44
44
|
},
|
|
45
45
|
"schematics": "./schematics/collection.json",
|
|
@@ -6,8 +6,8 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
6
6
|
import { Messages } from './messages';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* ([see example]({% slug rtl_buttons %}).
|
|
9
|
+
* Represents a custom component for overriding the default SplitButton messages.
|
|
10
|
+
* ([see example]({% slug rtl_buttons %})).
|
|
11
11
|
*/
|
|
12
12
|
export declare class SplitButtonCustomMessagesComponent extends Messages {
|
|
13
13
|
protected service: LocalizationService;
|
|
@@ -9,25 +9,24 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class Messages extends ComponentMessages {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Specifies the text for the SplitButton `aria-label`.
|
|
13
13
|
*
|
|
14
|
-
* The
|
|
15
|
-
* For a SplitButton with text 'Reply'
|
|
14
|
+
* The `aria-label` text consists of two parts: the SplitButton text and a localizable string.
|
|
15
|
+
* For example, for a SplitButton with the text `'Reply'`, the default `aria-label` is `'Reply splitbutton'`.
|
|
16
16
|
*
|
|
17
|
-
* To
|
|
18
|
-
* placeholder for the button text
|
|
19
|
-
* internally with the current SplitButton text,
|
|
17
|
+
* To reorder the SplitButton text and the localizable part, use the `splitButtonLabel` property with a
|
|
18
|
+
* placeholder for the button text, such as `'splitbutton for {buttonText}'`. The `{buttonText}` placeholder
|
|
19
|
+
* is replaced internally with the current SplitButton text. For instance, the resulting `aria-label` is
|
|
20
|
+
* rendered as `'splitbutton for Reply'`.
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* </kendo-splitbutton>
|
|
30
|
-
* ```
|
|
23
|
+
* ```ts
|
|
24
|
+
* <kendo-splitbutton>
|
|
25
|
+
* <kendo-splitbutton-messages
|
|
26
|
+
* splitButtonLabel="splitbutton for {buttonText}">
|
|
27
|
+
* </kendo-splitbutton-messages>
|
|
28
|
+
* </kendo-splitbutton>
|
|
29
|
+
* ```
|
|
31
30
|
*/
|
|
32
31
|
splitButtonLabel: string;
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
@@ -20,39 +20,27 @@ import * as i0 from "@angular/core";
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
23
|
-
*
|
|
23
|
+
* @Component({
|
|
24
24
|
* selector: 'my-app',
|
|
25
25
|
* template: `
|
|
26
|
-
* <kendo-splitbutton [data]="
|
|
27
|
-
* (itemClick)="onSplitButtonItemClick($event)"
|
|
28
|
-
* (buttonClick)="onSplitButtonClick()">Paste</kendo-splitbutton>
|
|
26
|
+
* <kendo-splitbutton [data]="items" (buttonClick)="onSplitButtonClick()">Paste</kendo-splitbutton>
|
|
29
27
|
* `
|
|
30
28
|
* })
|
|
31
29
|
*
|
|
32
30
|
* class AppComponent {
|
|
33
|
-
* public
|
|
31
|
+
* public items: Array<any> = [{
|
|
34
32
|
* text: 'Keep Text Only',
|
|
35
33
|
* icon: 'clipboard-text',
|
|
36
34
|
* click: () => { console.log('Keep Text Only click handler'); }
|
|
37
35
|
* }, {
|
|
38
36
|
* text: 'Paste as HTML',
|
|
39
37
|
* icon: 'clipboard-code'
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* icon: 'clipboard-markdown'
|
|
43
|
-
* }, {
|
|
44
|
-
* text: 'Set Default Paste'
|
|
45
|
-
* }];
|
|
38
|
+
* }
|
|
39
|
+
* ];
|
|
46
40
|
*
|
|
47
41
|
* public onSplitButtonClick(dataItem: any): void {
|
|
48
42
|
* console.log('Paste');
|
|
49
43
|
* }
|
|
50
|
-
*
|
|
51
|
-
* public onSplitButtonItemClick(dataItem: any): void {
|
|
52
|
-
* if (dataItem) {
|
|
53
|
-
* console.log(dataItem.text);
|
|
54
|
-
* }
|
|
55
|
-
* }
|
|
56
44
|
* }
|
|
57
45
|
* ```
|
|
58
46
|
*/
|
|
@@ -60,107 +48,67 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
|
|
|
60
48
|
private localization;
|
|
61
49
|
private renderer;
|
|
62
50
|
/**
|
|
63
|
-
* Sets the text
|
|
51
|
+
* Sets the text displayed within the SplitButton.
|
|
64
52
|
*/
|
|
65
53
|
text: string;
|
|
66
54
|
/**
|
|
67
|
-
*
|
|
68
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
55
|
+
* Specifies an icon to display next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
|
|
69
56
|
*/
|
|
70
57
|
icon: string;
|
|
71
58
|
/**
|
|
72
|
-
*
|
|
59
|
+
* Specifies an `SVGIcon` to display next to the button text.
|
|
73
60
|
*/
|
|
74
61
|
svgIcon: SVGIcon;
|
|
75
62
|
/**
|
|
76
|
-
*
|
|
77
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
63
|
+
* Specifies a custom CSS class for the icon displayed next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
|
|
78
64
|
*/
|
|
79
65
|
iconClass: string;
|
|
80
66
|
/**
|
|
81
|
-
*
|
|
67
|
+
* Specifies the `type` attribute of the main button.
|
|
82
68
|
*/
|
|
83
69
|
type: string;
|
|
84
70
|
/**
|
|
85
|
-
*
|
|
86
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
71
|
+
* Specifies the URL of an image to display next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
|
|
87
72
|
*/
|
|
88
73
|
imageUrl: string;
|
|
89
74
|
/**
|
|
90
|
-
*
|
|
91
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
|
|
75
|
+
* Configures the padding of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#size)).
|
|
92
76
|
*
|
|
93
|
-
*
|
|
94
|
-
* * `small`
|
|
95
|
-
* * `medium` (default)
|
|
96
|
-
* * `large`
|
|
97
|
-
* * `none`
|
|
77
|
+
* @default 'medium'
|
|
98
78
|
*/
|
|
99
79
|
size: ButtonSize;
|
|
100
80
|
/**
|
|
101
|
-
*
|
|
102
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
|
|
81
|
+
* Configures the border radius of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#rounded)).
|
|
103
82
|
*
|
|
104
|
-
*
|
|
105
|
-
* * `small`
|
|
106
|
-
* * `medium` (default)
|
|
107
|
-
* * `large`
|
|
108
|
-
* * `full`
|
|
109
|
-
* * `none`
|
|
83
|
+
* @default 'medium'
|
|
110
84
|
*/
|
|
111
85
|
set rounded(rounded: ButtonRounded);
|
|
112
86
|
get rounded(): ButtonRounded;
|
|
113
87
|
/**
|
|
114
|
-
*
|
|
115
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
|
|
88
|
+
* Configures the background and border styles of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#fillMode)).
|
|
116
89
|
*
|
|
117
|
-
*
|
|
118
|
-
* * `solid` (default)
|
|
119
|
-
* * `flat`
|
|
120
|
-
* * `outline`
|
|
121
|
-
* * `link`
|
|
90
|
+
* @default 'solid'
|
|
122
91
|
*/
|
|
123
92
|
set fillMode(fillMode: ButtonFillMode);
|
|
124
93
|
get fillMode(): ButtonFillMode;
|
|
125
94
|
/**
|
|
126
|
-
*
|
|
127
|
-
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
128
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-themeColor)).
|
|
95
|
+
* Configures the theme color of the SplitButton. The theme color applies to the background, border, and text ([see example]({% slug api_buttons_splitbuttoncomponent %}#themeColor)).
|
|
129
96
|
*
|
|
130
|
-
*
|
|
131
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
132
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
133
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
134
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
135
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
136
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
137
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
138
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
139
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
140
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
141
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
142
|
-
* * `none`— Removes the built in theme color.
|
|
97
|
+
* @default 'base'
|
|
143
98
|
*/
|
|
144
99
|
themeColor: ButtonThemeColor;
|
|
145
100
|
/**
|
|
146
|
-
*
|
|
147
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
101
|
+
* Disables the SplitButton when set to `true` ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
|
|
148
102
|
*/
|
|
149
103
|
set disabled(value: boolean);
|
|
150
104
|
get disabled(): boolean;
|
|
151
105
|
/**
|
|
152
|
-
* Configures the popup of the SplitButton.
|
|
153
|
-
*
|
|
154
|
-
* The available options are:
|
|
155
|
-
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
156
|
-
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
157
|
-
* - `appendTo: "root" | "component" | ViewContainerRef`—Specifies the component to which the popup will be appended.
|
|
158
|
-
* - `align: "left" | "center" | "right"`—Specifies the alignment of the popup.
|
|
106
|
+
* Configures the popup settings of the SplitButton.
|
|
159
107
|
*/
|
|
160
108
|
set popupSettings(settings: PopupSettings);
|
|
161
109
|
get popupSettings(): PopupSettings;
|
|
162
110
|
/**
|
|
163
|
-
* Specifies the [`
|
|
111
|
+
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
164
112
|
*/
|
|
165
113
|
tabIndex: number;
|
|
166
114
|
/**
|
|
@@ -168,29 +116,25 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
|
|
|
168
116
|
*/
|
|
169
117
|
textField: string;
|
|
170
118
|
/**
|
|
171
|
-
* Sets the data
|
|
172
|
-
*
|
|
173
|
-
* > The data has to be provided in an array-like list.
|
|
119
|
+
* Sets the data for the SplitButton. Provide the data as an array-like list.
|
|
174
120
|
*/
|
|
175
121
|
set data(data: any);
|
|
176
122
|
get data(): any;
|
|
177
123
|
/**
|
|
178
|
-
*
|
|
179
|
-
* Supports
|
|
124
|
+
* Specifies the CSS classes for the button that opens the popup.
|
|
125
|
+
* Supports values compatible with [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
180
126
|
*/
|
|
181
127
|
arrowButtonClass: any;
|
|
182
128
|
/**
|
|
183
|
-
* Specifies the name of the
|
|
184
|
-
* be rendered for the button which opens the popup.
|
|
129
|
+
* Specifies the name of the font icon displayed on the button that opens the popup.
|
|
185
130
|
*/
|
|
186
131
|
arrowButtonIcon: string;
|
|
187
132
|
/**
|
|
188
|
-
* Specifies the [`SVGIcon`](slug:
|
|
189
|
-
* be rendered for the button which opens the popup.
|
|
133
|
+
* Specifies the [`SVGIcon`](slug:api_icons_svgiconcomponent) displayed on the button that opens the popup.
|
|
190
134
|
*/
|
|
191
135
|
arrowButtonSvgIcon: SVGIcon;
|
|
192
136
|
/**
|
|
193
|
-
* Sets attributes
|
|
137
|
+
* Sets attributes for the main button.
|
|
194
138
|
*/
|
|
195
139
|
set buttonAttributes(buttonAttributes: {
|
|
196
140
|
[key: string]: string;
|
|
@@ -199,75 +143,31 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
|
|
|
199
143
|
[key: string]: string;
|
|
200
144
|
};
|
|
201
145
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* @example
|
|
205
|
-
* ```ts
|
|
206
|
-
* _@Component({
|
|
207
|
-
* selector: 'my-app',
|
|
208
|
-
* template: `
|
|
209
|
-
* <kendo-splitbutton (buttonClick)="onSplitButtonClick()" [data]="data">
|
|
210
|
-
* Reply
|
|
211
|
-
* </kendo-splitbutton>
|
|
212
|
-
* `
|
|
213
|
-
* })
|
|
214
|
-
* class AppComponent {
|
|
215
|
-
* public data: Array<any> = ['Reply All', 'Forward', 'Reply & Delete'];
|
|
216
|
-
*
|
|
217
|
-
* public onSplitButtonClick(): void {
|
|
218
|
-
* console.log('SplitButton click');
|
|
219
|
-
* }
|
|
220
|
-
* }
|
|
221
|
-
* ```
|
|
222
|
-
*
|
|
146
|
+
* Emits an event when the main button is clicked.
|
|
223
147
|
*/
|
|
224
148
|
buttonClick: EventEmitter<any>;
|
|
225
149
|
/**
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* @example
|
|
229
|
-
* ```ts
|
|
230
|
-
* _@Component({
|
|
231
|
-
* selector: 'my-app',
|
|
232
|
-
* template: `
|
|
233
|
-
* <kendo-splitbutton (itemClick)="onSplitButtonItemClick($event)" [data]="data">
|
|
234
|
-
* Reply
|
|
235
|
-
* </kendo-splitbutton>
|
|
236
|
-
* `
|
|
237
|
-
* })
|
|
238
|
-
* class AppComponent {
|
|
239
|
-
* public data: Array<any> = ['Reply All', 'Forward', 'Reply & Delete'];
|
|
240
|
-
*
|
|
241
|
-
* public onSplitButtonItemClick(dataItem?: string): void {
|
|
242
|
-
* if (dataItem) {
|
|
243
|
-
* console.log(dataItem);
|
|
244
|
-
* }
|
|
245
|
-
* }
|
|
246
|
-
* }
|
|
247
|
-
* ```
|
|
248
|
-
*
|
|
150
|
+
* Emits an event when an item in the drop-down list is clicked. The event data contains the clicked item's data.
|
|
249
151
|
*/
|
|
250
152
|
itemClick: EventEmitter<any>;
|
|
251
153
|
/**
|
|
252
|
-
*
|
|
154
|
+
* Emits an event when the SplitButton gains focus.
|
|
253
155
|
*/
|
|
254
156
|
onFocus: EventEmitter<any>;
|
|
255
157
|
/**
|
|
256
|
-
*
|
|
158
|
+
* Emits an event when the SplitButton is blurred.
|
|
257
159
|
*/
|
|
258
160
|
onBlur: EventEmitter<any>;
|
|
259
161
|
/**
|
|
260
|
-
*
|
|
261
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
162
|
+
* Emits an event before the popup opens. This event is preventable.
|
|
262
163
|
*/
|
|
263
164
|
open: EventEmitter<PreventableEvent>;
|
|
264
165
|
/**
|
|
265
|
-
*
|
|
266
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
166
|
+
* Emits an event before the popup closes. This event is preventable.
|
|
267
167
|
*/
|
|
268
168
|
close: EventEmitter<PreventableEvent>;
|
|
269
169
|
/**
|
|
270
|
-
*
|
|
170
|
+
* Specifies a template to customize the content of the items in the drop-down list.
|
|
271
171
|
*/
|
|
272
172
|
itemTemplate: ButtonItemTemplateDirective;
|
|
273
173
|
activeArrow: boolean;
|
|
@@ -8,8 +8,9 @@ import * as i2 from "./localization/custom-messages.component";
|
|
|
8
8
|
import * as i3 from "@progress/kendo-angular-common";
|
|
9
9
|
import * as i4 from "../listbutton/button-item-template.directive";
|
|
10
10
|
/**
|
|
11
|
+
* Represents the exported package module.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
+
* Required for adding SplitButton features in NgModule-based Angular applications.
|
|
13
14
|
*
|
|
14
15
|
* The package exports:
|
|
15
16
|
* - `SplitButtonComponent`—The SplitButton component class.
|