@progress/kendo-angular-toolbar 19.1.0 → 19.1.1-develop.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.
Files changed (33) hide show
  1. package/common/fillmode.d.ts +1 -1
  2. package/common/overflow-mode.d.ts +1 -1
  3. package/common/overflow-settings.d.ts +8 -16
  4. package/common/scroll-buttons.d.ts +12 -2
  5. package/common/size.d.ts +1 -1
  6. package/display-mode.d.ts +5 -5
  7. package/esm2022/localization/custom-messages.component.mjs +14 -1
  8. package/esm2022/localization/messages.mjs +3 -3
  9. package/esm2022/package-metadata.mjs +2 -2
  10. package/esm2022/toolbar.component.mjs +28 -22
  11. package/esm2022/toolbar.module.mjs +2 -2
  12. package/esm2022/tools/toolbar-button.component.mjs +38 -39
  13. package/esm2022/tools/toolbar-buttongroup.component.mjs +20 -11
  14. package/esm2022/tools/toolbar-dropdownbutton.component.mjs +39 -47
  15. package/esm2022/tools/toolbar-separator.component.mjs +11 -0
  16. package/esm2022/tools/toolbar-spacer.component.mjs +11 -0
  17. package/esm2022/tools/toolbar-splitbutton.component.mjs +45 -54
  18. package/esm2022/tools/toolbar-tool.component.mjs +31 -12
  19. package/fesm2022/progress-kendo-angular-toolbar.mjs +244 -193
  20. package/group-selection-settings.d.ts +2 -2
  21. package/localization/custom-messages.component.d.ts +14 -1
  22. package/localization/messages.d.ts +3 -3
  23. package/package.json +9 -9
  24. package/popup-settings.d.ts +23 -20
  25. package/toolbar.component.d.ts +28 -22
  26. package/toolbar.module.d.ts +2 -2
  27. package/tools/toolbar-button.component.d.ts +38 -39
  28. package/tools/toolbar-buttongroup.component.d.ts +20 -11
  29. package/tools/toolbar-dropdownbutton.component.d.ts +39 -47
  30. package/tools/toolbar-separator.component.d.ts +11 -0
  31. package/tools/toolbar-spacer.component.d.ts +11 -0
  32. package/tools/toolbar-splitbutton.component.d.ts +45 -54
  33. package/tools/toolbar-tool.component.d.ts +31 -12
@@ -3,6 +3,6 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Represents the possible fillMode options of the Toolbar.
6
+ * Represents the possible fill mode options of the ToolBar.
7
7
  */
8
8
  export type ToolbarFillMode = 'solid' | 'flat' | 'outline' | 'none';
@@ -3,6 +3,6 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Represents the possible overflowMode options of the Toolbar. Applicable when there is not enough space to render all tools.
6
+ * Sets how the ToolBar handles overflow when there is not enough space to display all tools.
7
7
  */
8
8
  export type OverflowMode = 'scroll' | 'section' | 'menu' | 'none';
@@ -6,48 +6,40 @@ import { SVGIcon } from "@progress/kendo-svg-icons";
6
6
  import { OverflowMode } from "./overflow-mode";
7
7
  import { ToolbarScrollButtonsPosition, ToolbarScrollButtonsVisibility } from "./scroll-buttons";
8
8
  /**
9
- * The settings for the overflow functionality of the Toolbar.
9
+ * Represents the overflow settings for the ToolBar.
10
10
  */
11
11
  export interface ToolbarOverflowSettings {
12
12
  /**
13
- * Determines the Toolbar overflow mode.
13
+ * Sets the ToolBar overflow mode.
14
14
  * @default 'none'
15
15
  */
16
16
  mode?: OverflowMode;
17
17
  /**
18
- * Determines the Toolbar scroll buttons visibility mode. Applicable when the overflow mode is set to 'scroll'. The possible options are:
19
- * - 'auto' (default) - The scroll buttons will be rendered only when the tools list overflows its container.
20
- * - 'visible' - The scroll buttons will be always visible.
21
- * - 'hidden' - No scroll buttons will be rendered.
18
+ * Sets the ToolBar scroll buttons visibility mode. Applies when the overflow mode is set to `'scroll'`.
22
19
  */
23
20
  scrollButtons?: ToolbarScrollButtonsVisibility;
24
21
  /**
25
- * Determines the Toolbar scroll buttons position. Applicable when the overflow mode is set to 'scroll'. The possible options are:
26
- * - 'start'—The scroll buttons will be rendered at the start before all tools.
27
- * - 'end'—The scroll buttons will be rendered at the end after all tools.
28
- * - 'split'(default)—The scroll buttons will be rendered at each side of the tools list.
22
+ * Sets the ToolBar scroll buttons position. Applies when the overflow mode is set to `'scroll'`.
29
23
  */
30
24
  scrollButtonsPosition?: ToolbarScrollButtonsPosition;
31
25
  /**
32
- * Allows defining a custom CSS class, or multiple classes separated by spaces, which will be applied to the span element of the prev scroll button. Applicable when the overflow mode is set to 'scroll'.
26
+ * Adds a custom CSS class or multiple classes to the span element of the previous scroll button. Applies when the overflow mode is set to `'scroll'`.
33
27
  *
34
28
  * Allows the usage of custom icons.
35
29
  */
36
30
  prevButtonIcon?: string;
37
31
  /**
38
- * Allows defining a custom CSS class, or multiple classes separated by spaces, which will be applied to the span element of the next scroll button. Applicable when the overflow mode is set to 'scroll'.
32
+ * Adds a custom CSS class or multiple classes to the span element of the next scroll button. Applies when the overflow mode is set to `'scroll'`.
39
33
  *
40
34
  * Allows the usage of custom icons.
41
35
  */
42
36
  nextButtonIcon?: string;
43
37
  /**
44
- * Defines an SVGIcon to be rendered for the previous button icon.
45
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one. Applicable when the overflow mode is set to 'scroll'.
38
+ * Sets an `SVGIcon` for the previous button icon. Accepts an [existing Kendo SVG icon](slug:svgicon_list) or a custom one. Applies when the overflow mode is set to `'scroll'`.
46
39
  */
47
40
  prevSVGButtonIcon?: SVGIcon;
48
41
  /**
49
- * Defines an SVGIcon to be rendered for the next button icon.
50
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one. Applicable when the overflow mode is set to 'scroll'.
42
+ * Sets an `SVGIcon` for the next button icon. Accepts an [existing Kendo SVG icon](slug:svgicon_list) or a custom one. Applies when the overflow mode is set to `'scroll'`.
51
43
  */
52
44
  nextSVGButtonIcon?: SVGIcon;
53
45
  }
@@ -3,10 +3,20 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Specifies when the Toolbar scroll buttons will be rendered.
6
+ * Controls when the ToolBar renders scroll buttons.
7
+ *
8
+ * The possible options are:
9
+ * - `auto`(default)—Renders the scroll buttons only when the tools overflow the ToolBar container.
10
+ * - `visible`—Always renders the scroll buttons.
11
+ * - `hidden`—Never renders the scroll buttons.
7
12
  */
8
13
  export type ToolbarScrollButtonsVisibility = 'hidden' | 'visible' | 'auto';
9
14
  /**
10
- * The available options for the `scrollButtonsPosition` option.
15
+ * Controls where the ToolBar renders scroll buttons.
16
+ *
17
+ * The possible options are:
18
+ * - `start`—Renders the scroll buttons at the start before all tools.
19
+ * - `end`—Renders the scroll buttons at the end after all tools.
20
+ * - `split`(default)—Renders the scroll buttons on both sides of the tools list.
11
21
  */
12
22
  export type ToolbarScrollButtonsPosition = 'start' | 'end' | 'split';
package/common/size.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Represents the possible size options of the Toolbar.
6
+ * Represents the possible size options of the ToolBar.
7
7
  * @default `medium`
8
8
  */
9
9
  export type ToolbarSize = 'small' | 'medium' | 'large' | 'none';
package/display-mode.d.ts CHANGED
@@ -3,13 +3,13 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Specifies the visibility of the toolbar tool text or icon.
6
+ * Sets the visibility for the ToolBar tool text or icon.
7
7
  *
8
8
  * The possible values are:
9
- * - `always`—The text or icon is always visible, regardless of the current overflow mode.
10
- * - `toolbar`—The text or icon is displayed in the main ToolBar and in the overflow element when `section` overflow mode is used.
11
- * - `menu`—The text or icon is displayed only in the overflow popup when `menu` overflow mode is used.
12
- * - `never`—The text or icon is never rendered.
9
+ * - `always`—Always shows the text or icon regardless of the overflow mode.
10
+ * - `toolbar`—Shows in the main ToolBar and in the overflow element when using `section` overflow mode.
11
+ * - `menu`—Shows only in the overflow popup when using `menu` overflow mode.
12
+ * - `never`—Never renders the text or icon.
13
13
  *
14
14
  * @default 'always'
15
15
  */
@@ -8,7 +8,20 @@ import { ToolbarMessages } from './messages';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@progress/kendo-angular-l10n";
10
10
  /**
11
- * Custom component messages override default component messages.
11
+ * Represents the custom messages component of the ToolBar.
12
+ *
13
+ * Use this component to override default messages for the ToolBar.
14
+ *
15
+ * @example
16
+ * ```html
17
+ * <kendo-toolbar>
18
+ * <kendo-toolbar-messages
19
+ * moreToolsTitle="More options"
20
+ * previousToolButton="Previous"
21
+ * nextToolButton="Next">
22
+ * </kendo-toolbar-messages>
23
+ * </kendo-toolbar>
24
+ * ```
12
25
  */
13
26
  export class ToolbarCustomMessagesComponent extends ToolbarMessages {
14
27
  service;
@@ -10,15 +10,15 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export class ToolbarMessages extends ComponentMessages {
12
12
  /**
13
- * The title of the **More Tools** button in a responsive ToolBar
13
+ * Sets the title of the **More Tools** button in a responsive ToolBar.
14
14
  */
15
15
  moreToolsTitle;
16
16
  /**
17
- * The title for the **Previous Tool** button when the Toolbar is scrollable.
17
+ * Sets the title for the **Previous Tool** button when the ToolBar is scrollable.
18
18
  */
19
19
  previousToolButton;
20
20
  /**
21
- * The title for the **Next Tool** button when the Toolbar is scrollable.
21
+ * Sets the title for the **Next Tool** button when the ToolBar is scrollable.
22
22
  */
23
23
  nextToolButton;
24
24
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1748538588,
14
- version: '19.1.0',
13
+ publishDate: 1749139799,
14
+ version: '19.1.1-develop.1',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -44,6 +44,13 @@ const getInitialPopupSettings = (isRtl) => ({
44
44
  });
45
45
  /**
46
46
  * Represents the [Kendo UI ToolBar component for Angular]({% slug overview_toolbar %}).
47
+ *
48
+ * @example
49
+ * ```html
50
+ * <kendo-toolbar>
51
+ * <kendo-toolbar-button text="Button"></kendo-toolbar-button>
52
+ * </kendo-toolbar>
53
+ * ```
47
54
  */
48
55
  export class ToolBarComponent {
49
56
  localization;
@@ -60,7 +67,8 @@ export class ToolBarComponent {
60
67
  return `k-button-${SIZES[this.size]}`;
61
68
  }
62
69
  /**
63
- * Configures the overflow mode. Used to specify how tools will be rendered when the total size of all tools is greater than the size of the Toolbar container.
70
+ * Sets the overflow mode for the ToolBar.
71
+ * Use this property to control how tools render when their total size is greater than the ToolBar container.
64
72
  * @default false
65
73
  */
66
74
  set overflow(overflow) {
@@ -122,11 +130,9 @@ export class ToolBarComponent {
122
130
  return this.normalizedOverflow.mode !== 'none';
123
131
  }
124
132
  /**
125
- * Configures the popup of the ToolBar overflow button ([see example](slug:responsive_toolbar#customizing-the-popup)).
126
- *
127
- * The available options are:
128
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
129
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
133
+ * Configures the popup for the ToolBar overflow button.
134
+ * Use this property to customize the overflow popup appearance and behavior
135
+ * ([see example](slug:responsive_toolbar#customizing-the-popup)).
130
136
  */
131
137
  set popupSettings(settings) {
132
138
  this._popupSettings = Object.assign({}, getInitialPopupSettings(this.localization.rtl), settings);
@@ -135,9 +141,9 @@ export class ToolBarComponent {
135
141
  return this._popupSettings || getInitialPopupSettings(this.localization.rtl);
136
142
  }
137
143
  /**
138
- * The fillMode property specifies the background and border styles of the Toolbar
144
+ * Sets the fill mode for the ToolBar.
145
+ * This property controls the background and border styles of the ToolBar
139
146
  * ([see example](slug:appearance_toolbar#toc-fill-mode)).
140
- *
141
147
  * @default 'solid'
142
148
  */
143
149
  set fillMode(fillMode) {
@@ -149,17 +155,15 @@ export class ToolBarComponent {
149
155
  return this._fillMode;
150
156
  }
151
157
  /**
152
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the ToolBar.
158
+ * Sets the `tabindex` attribute of the ToolBar.
159
+ * Use this property to control the tab order of the ToolBar component.
160
+ * @default 0
153
161
  */
154
162
  tabindex = 0;
155
163
  /**
156
- * Specifies the padding of all Toolbar elements.
157
- *
158
- * The possible values are:
159
- * * `small`
160
- * * `medium` (default)
161
- * * `large`
162
- * * `none`
164
+ * Sets the size for all ToolBar elements.
165
+ * Use this property to control the padding of the ToolBar elements.
166
+ * @default 'medium'
163
167
  */
164
168
  set size(size) {
165
169
  const newSize = size ? size : DEFAULT_SIZE;
@@ -179,8 +183,9 @@ export class ToolBarComponent {
179
183
  return this.tabindex;
180
184
  }
181
185
  /**
182
- * Specifies the icons visibility for all tools in the ToolBar.
183
- * This can be overridden by the `showIcon` property of each tool.
186
+ * Sets the icon visibility for all tools in the ToolBar.
187
+ * You can override this property for each tool using the `showIcon` property of the tool.
188
+ * @default 'always'
184
189
  */
185
190
  set showIcon(value) {
186
191
  if (this._showIcon === value) {
@@ -194,8 +199,9 @@ export class ToolBarComponent {
194
199
  });
195
200
  }
196
201
  /**
197
- * Specifies the text visibility for all tools in the ToolBar.
198
- * This can be overridden by the `showText` property of each tool.
202
+ * Sets the text visibility for all tools in the ToolBar.
203
+ * You can override this property for each tool using the `showText` property of the tool.
204
+ * @default 'always'
199
205
  */
200
206
  set showText(value) {
201
207
  if (this._showText === value) {
@@ -209,11 +215,11 @@ export class ToolBarComponent {
209
215
  });
210
216
  }
211
217
  /**
212
- * Fires when the overflow popup of the ToolBar is opened.
218
+ * Emits when the overflow popup of the ToolBar opens.
213
219
  */
214
220
  open = new EventEmitter();
215
221
  /**
216
- * Fires when the overflow popup of the ToolBar is closed.
222
+ * Emits when the overflow popup of the ToolBar closes.
217
223
  */
218
224
  close = new EventEmitter();
219
225
  allTools;
@@ -19,10 +19,10 @@ import * as i8 from "./tools/toolbar-splitbutton.component";
19
19
  import * as i9 from "./tools/toolbar-tool.component";
20
20
  // IMPORTANT: NgModule export kept for backwards compatibility
21
21
  /**
22
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the ToolBar component.
22
+ * Defines the [NgModule](link:site.data.urls.angular['ngmoduleapi']) for the ToolBar component.
23
23
  *
24
24
  * The package exports:
25
- * - `ToolBarComponent`&mdash;The ToolBarComponent class.
25
+ * - `ToolBarComponent`&mdash;The ToolBar component class.
26
26
  * - `ToolBarToolComponent`&mdash;The base Tool component class.
27
27
  * - `ToolBarButtonComponent`&mdash;The Button Tool component class.
28
28
  * - `ToolBarButtonGroupComponent`&mdash;The ButtonGroup Tool component class.
@@ -15,6 +15,16 @@ import * as i0 from "@angular/core";
15
15
  import * as i1 from "../toolbar.component";
16
16
  /**
17
17
  * Represents the [Kendo UI ToolBar Button tool for Angular]({% slug controltypes_toolbar %}#toc-buttons).
18
+ *
19
+ * Use this component to render a button inside the ToolBar.
20
+ *
21
+ * @example
22
+ * ```html
23
+ * <kendo-toolbar>
24
+ * <kendo-toolbar-button text="Button"></kendo-toolbar-button>
25
+ * </kendo-toolbar>
26
+ * ```
27
+ *
18
28
  */
19
29
  export class ToolBarButtonComponent extends ToolBarToolComponent {
20
30
  element;
@@ -23,6 +33,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
23
33
  // showText and showIcon showIcon should be declared first
24
34
  /**
25
35
  * Specifies the button text visibility.
36
+ * Accepts a `DisplayMode` value.
37
+ * @default 'always'
26
38
  */
27
39
  set showText(value) {
28
40
  this._showText = value;
@@ -33,6 +45,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
33
45
  }
34
46
  /**
35
47
  * Specifies the button icon visibility.
48
+ * Accepts a `DisplayMode` value.
49
+ * @default 'always'
36
50
  */
37
51
  set showIcon(value) {
38
52
  this._showIcon = value;
@@ -42,7 +56,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
42
56
  return this._showIcon;
43
57
  }
44
58
  /**
45
- * Specifies the text of the Button ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
59
+ * Specifies the text of the Button
60
+ * ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
46
61
  */
47
62
  set text(text) {
48
63
  this._text = text;
@@ -58,26 +73,27 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
58
73
  return this.host.size;
59
74
  }
60
75
  /**
61
- * Specifies custom inline CSS styles of the Button.
76
+ * Specifies custom inline CSS styles for the Button.
62
77
  */
63
78
  style;
64
79
  /**
65
- * Specifies custom CSS class names that will be added to the Button.
80
+ * Specifies custom CSS class names to be added to the Button.
66
81
  */
67
82
  className;
68
83
  /**
69
- * Specifies the title of the Button.
84
+ * Specifies the `title` attribute of the Button.
70
85
  */
71
86
  title;
72
87
  /**
73
- * If `disabled` is set to `true`, the Button is disabled
88
+ * Disables the Button when set to `true`
74
89
  * ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
75
90
  */
76
91
  disabled;
77
92
  /**
78
- * Provides visual styling that indicates if the Button is active
93
+ * Provides visual styling to indicate if the Button is active
79
94
  * ([see example]({% slug controltypes_toolbar %}#toc-toggle-buttons)).
80
- * By default, `toggleable` is set to `false`.
95
+ * For toggleable buttons, set this to `true`.
96
+ * @default false
81
97
  */
82
98
  toggleable = false;
83
99
  /**
@@ -99,37 +115,20 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
99
115
  }
100
116
  /**
101
117
  * Sets the selected state of the Button.
118
+ * Use with the `toggleable` property.
119
+ * @default false
102
120
  */
103
121
  selected = false;
104
122
  /**
105
- * The fillMode property specifies the background and border styles of the Button.
106
- *
107
- * The available values are:
108
- * * `solid` (default)
109
- * * `flat`
110
- * * `outline`
111
- * * `link`
112
- * * `null`
123
+ * Specifies the background and border styles of the Button.
124
+ * Accepts a `ButtonFillMode` value.
125
+ * @default 'solid'
113
126
  */
114
127
  fillMode = 'solid';
115
128
  /**
116
- * The Button allows you to specify predefined theme colors.
117
- * The theme color will be applied as a background and border color while also amending the text color accordingly
118
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
119
- *
120
- * The possible values are:
121
- * * `base` &mdash;Applies coloring based on the `base` theme color. (default)
122
- * * `primary` &mdash;Applies coloring based on the `primary` theme color.
123
- * * `secondary`&mdash;Applies coloring based on the `secondary` theme color.
124
- * * `tertiary`&mdash; Applies coloring based on the `tertiary` theme color.
125
- * * `info`&mdash;Applies coloring based on the `info` theme color.
126
- * * `success`&mdash; Applies coloring based on the `success` theme color.
127
- * * `warning`&mdash; Applies coloring based on the `warning` theme color.
128
- * * `error`&mdash; Applies coloring based on the `error` theme color.
129
- * * `dark`&mdash; Applies coloring based on the `dark` theme color.
130
- * * `light`&mdash; Applies coloring based on the `light` theme color.
131
- * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
132
- * * `null` &mdash;Removes the default CSS class (no class would be rendered).
129
+ * Specifies the predefined theme color of the Button.
130
+ * Accepts a `ButtonThemeColor` value.
131
+ * @default 'base'
133
132
  */
134
133
  themeColor = 'base';
135
134
  /**
@@ -142,8 +141,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
142
141
  this.overflowOptions.icon = getValueForLocation(icon, this.showIcon, true);
143
142
  }
144
143
  /**
145
- * Defines a CSS class&mdash;or multiple classes separated by spaces&mdash;
146
- * which are applied to a `span` element inside the Button. Allows the usage of custom icons.
144
+ * Defines a CSS class or multiple classes to be applied to a `span` element inside the Button.
145
+ * Allows the usage of custom icons.
147
146
  */
148
147
  set iconClass(iconClass) {
149
148
  this.toolbarOptions.iconClass = getValueForLocation(iconClass, this.showIcon, false);
@@ -151,7 +150,7 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
151
150
  }
152
151
  /**
153
152
  * Defines an SVGIcon to be rendered within the button.
154
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
153
+ * Accepts either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
155
154
  */
156
155
  set svgIcon(icon) {
157
156
  const isIconSet = this.toolbarOptions.icon || this.overflowOptions.icon;
@@ -166,8 +165,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
166
165
  this.overflowOptions.svgIcon = getValueForLocation(icon, this.showIcon, true);
167
166
  }
168
167
  /**
169
- * Defines a URL which is used for an `img` element inside the Button.
170
- * The URL can be relative or absolute. If relative, it is evaluated with relation to the web page URL.
168
+ * Defines a URL for an image to be rendered inside the Button.
169
+ * The URL can be relative or absolute.
171
170
  */
172
171
  set imageUrl(imageUrl) {
173
172
  this.toolbarOptions.imageUrl = getValueForLocation(imageUrl, this.showIcon, false);
@@ -178,11 +177,11 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
178
177
  */
179
178
  click = new EventEmitter();
180
179
  /**
181
- * Fires when the Button [pointerdown](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/pointerdown_event) event is triggered.
180
+ * Fires when the Button's `pointerdown` event is triggered.
182
181
  */
183
182
  pointerdown = new EventEmitter();
184
183
  /**
185
- * Fires each time the selected state of a Toggle Button is changed.
184
+ * Fires each time the selected state of a toggleable Button is changed.
186
185
  * The event argument is the new selected state (Boolean).
187
186
  */
188
187
  selectedChange = new EventEmitter();
@@ -15,35 +15,44 @@ import * as i0 from "@angular/core";
15
15
  import * as i1 from "@progress/kendo-angular-l10n";
16
16
  import * as i2 from "../toolbar.component";
17
17
  /**
18
- * Represents the Kendo UI Toolbar ButtonGroup for Angular.
18
+ * Represents the [Kendo UI Toolbar ButtonGroup for Angular](slug:controltypes_toolbar#button-groups).
19
+ *
20
+ * Use this component to group buttons in a ButtonGroup inside the ToolBar.
21
+ *
22
+ * @example
23
+ * ```html
24
+ * <kendo-toolbar>
25
+ * <kendo-toolbar-buttongroup>
26
+ * <kendo-toolbar-button text="Bold"></kendo-toolbar-button>
27
+ * <kendo-toolbar-button text="Underline"></kendo-toolbar-button>
28
+ * <kendo-toolbar-button text="Italic"></kendo-toolbar-button>
29
+ * </kendo-toolbar-buttongroup>
30
+ * </kendo-toolbar>
31
+ * ```
19
32
  */
20
33
  export class ToolBarButtonGroupComponent extends ToolBarToolComponent {
21
34
  localization;
22
35
  host;
23
36
  /**
24
- * By default, the ButtonGroup is enabled. To disable the whole group of buttons, set its `disabled`
25
- * attribute to `true`. To disable a specific button, set the `disabled` attribute of the button to
26
- * `true` and leave the `disabled` attribute of the ButtonGroup undefined. If you define the `disabled`
27
- * attribute of the ButtonGroup, it will take precedence over the `disabled` attributes of the underlying
28
- * buttons and they will be ignored.
37
+ * When `true`, disables the whole group of buttons.
38
+ * If you set the `disabled` property of the group, it overrides the `disabled` property of individual buttons.
29
39
  */
30
40
  disabled;
31
41
  /**
32
42
  * @hidden
33
43
  *
34
44
  * Used to set different fillmode in Spreadsheet and Toolbar to comply with referent rendering.
45
+ * @default 'solid'
35
46
  */
36
47
  fillMode = 'solid';
37
48
  /**
38
- * By default, the selection mode of the ButtonGroup is set to `multiple`.
49
+ * Sets the selection mode of the ButtonGroup.
50
+ * @default 'multiple'
39
51
  */
40
52
  selection = 'multiple';
41
53
  /**
42
54
  * Sets the width of the ButtonGroup.
43
- *
44
- * If the width of the ButtonGroup is set:
45
- * - The buttons resize automatically to fill the full width of the group wrapper.
46
- * - The buttons acquire the same width.
55
+ * When you set the width of the ButtonGroup, the buttons have the same width and resize to fill the group wrapper.
47
56
  */
48
57
  width;
49
58
  /**