@progress/kendo-angular-grid 12.0.0-develop.9 → 12.0.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.
- package/column-menu/column-chooser.component.d.ts +14 -19
- package/column-menu/column-menu-autosize-all.component.d.ts +12 -27
- package/column-menu/column-menu-autosize.component.d.ts +12 -26
- package/column-menu/column-menu-chooser.component.d.ts +11 -24
- package/column-menu/column-menu-expandable-item.interface.d.ts +0 -1
- package/column-menu/column-menu-filter.component.d.ts +12 -24
- package/column-menu/column-menu-item.component.d.ts +6 -21
- package/column-menu/column-menu-lock.component.d.ts +11 -25
- package/column-menu/column-menu-position.component.d.ts +12 -24
- package/column-menu/column-menu-settings.interface.d.ts +3 -24
- package/column-menu/column-menu-sort.component.d.ts +12 -25
- package/column-menu/column-menu-stick.component.d.ts +12 -24
- package/column-menu/column-menu.component.d.ts +9 -1
- package/column-menu/column-menu.service.d.ts +9 -21
- package/column-resizing/column-resize.interface.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +6 -57
- package/columns/column-base.d.ts +16 -369
- package/columns/column-group.component.d.ts +9 -48
- package/columns/column.component.d.ts +23 -109
- package/columns/command-column.component.d.ts +12 -60
- package/columns/reorder-column.component.d.ts +1 -1
- package/columns/sort-settings.d.ts +24 -12
- package/columns/span-column.component.d.ts +12 -123
- package/common/cell-click-event-args.interface.d.ts +1 -1
- package/common/fetch-data-callback.d.ts +1 -1
- package/common/preventable-event.d.ts +1 -1
- package/common/single-popup.service.d.ts +1 -1
- package/common/size-options.d.ts +1 -2
- package/data/change-event-args.interface.d.ts +2 -2
- package/data/data.collection.d.ts +1 -1
- package/data/grid-item.interface.d.ts +6 -3
- package/dragdrop/column-reorder-config.d.ts +1 -1
- package/editing/add-event-args.interface.d.ts +1 -1
- package/editing/cancel-event-args.interface.d.ts +1 -1
- package/editing/edit-event-args.interface.d.ts +1 -1
- package/editing/remove-event-args.interface.d.ts +1 -1
- package/editing/save-event-args.interface.d.ts +1 -1
- package/editing-directives/edit-service.interface.d.ts +1 -1
- package/esm2020/column-menu/column-chooser.component.mjs +14 -19
- package/esm2020/column-menu/column-menu-autosize-all.component.mjs +12 -27
- package/esm2020/column-menu/column-menu-autosize.component.mjs +12 -26
- package/esm2020/column-menu/column-menu-chooser.component.mjs +11 -24
- package/esm2020/column-menu/column-menu-filter.component.mjs +12 -24
- package/esm2020/column-menu/column-menu-item.component.mjs +6 -21
- package/esm2020/column-menu/column-menu-lock.component.mjs +11 -25
- package/esm2020/column-menu/column-menu-position.component.mjs +12 -24
- package/esm2020/column-menu/column-menu-sort.component.mjs +12 -25
- package/esm2020/column-menu/column-menu-stick.component.mjs +12 -24
- package/esm2020/column-menu/column-menu.component.mjs +9 -1
- package/esm2020/column-menu/column-menu.service.mjs +9 -21
- package/esm2020/columns/checkbox-column.component.mjs +6 -57
- package/esm2020/columns/column-base.mjs +7 -40
- package/esm2020/columns/column-group.component.mjs +9 -48
- package/esm2020/columns/column.component.mjs +22 -79
- package/esm2020/columns/command-column.component.mjs +12 -60
- package/esm2020/columns/reorder-column.component.mjs +1 -1
- package/esm2020/columns/span-column.component.mjs +12 -123
- package/esm2020/common/preventable-event.mjs +1 -1
- package/esm2020/common/single-popup.service.mjs +1 -1
- package/esm2020/excel/excel.module.mjs +5 -15
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +11 -10
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +26 -13
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +15 -0
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +14 -11
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +14 -15
- package/esm2020/filtering/date-filter.component.mjs +6 -2
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +15 -2
- package/esm2020/filtering/numeric-filter.component.mjs +4 -1
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +3 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +3 -5
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/string-filter.component.mjs +2 -1
- package/esm2020/grid.component.mjs +39 -325
- package/esm2020/grid.module.mjs +6 -16
- package/esm2020/layout/sizing-options.service.mjs +3 -0
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-info.component.mjs +1 -1
- package/esm2020/pager/pager-input.component.mjs +1 -48
- package/esm2020/pager/pager-next-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-page-sizes.component.mjs +3 -92
- package/esm2020/pager/pager-prev-buttons.component.mjs +1 -1
- package/esm2020/pdf/pdf-margin.component.mjs +9 -0
- package/esm2020/pdf/pdf.module.mjs +7 -16
- package/esm2020/rendering/common/spacer.component.mjs +2 -1
- package/esm2020/rendering/toolbar/toolbar-position.mjs +17 -0
- package/esm2020/row-reordering/row-reorder.service.mjs +2 -1
- package/excel/excel.component.d.ts +2 -7
- package/excel/excel.module.d.ts +5 -15
- package/fesm2015/progress-kendo-angular-grid.mjs +476 -1372
- package/fesm2020/progress-kendo-angular-grid.mjs +476 -1372
- package/filtering/cell/boolean-filter-cell.component.d.ts +11 -10
- package/filtering/cell/date-filter-cell.component.d.ts +26 -13
- package/filtering/cell/filter-cell-operators.component.d.ts +15 -0
- package/filtering/cell/numeric-filter-cell.component.d.ts +14 -11
- package/filtering/cell/string-filter-cell.component.d.ts +14 -15
- package/filtering/date-filter.component.d.ts +8 -12
- package/filtering/filterable.d.ts +10 -0
- package/filtering/menu/boolean-filter-menu.component.d.ts +13 -13
- package/filtering/menu/date-filter-menu.component.d.ts +13 -13
- package/filtering/menu/numeric-filter-menu.component.d.ts +13 -13
- package/filtering/menu/string-filter-menu.component.d.ts +15 -2
- package/filtering/numeric-filter.component.d.ts +4 -1
- package/filtering/operators/after-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/after-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-filter-operator.component.d.ts +4 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +2 -5
- package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -4
- package/filtering/operators/eq-filter-operator.component.d.ts +2 -4
- package/filtering/operators/gt-filter-operator.component.d.ts +4 -0
- package/filtering/operators/gte-filter-operator.component.d.ts +2 -5
- package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -4
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -4
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -4
- package/filtering/operators/isnull-filter-operator.component.d.ts +2 -4
- package/filtering/operators/lt-filter-operator.component.d.ts +5 -0
- package/filtering/operators/lte-filter-operator.component.d.ts +5 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +2 -4
- package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -4
- package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -4
- package/filtering/string-filter.component.d.ts +2 -1
- package/grid.component.d.ts +43 -327
- package/grid.module.d.ts +6 -16
- package/grouping/group-key.interface.d.ts +1 -13
- package/grouping/group-rows-args.interface.d.ts +1 -1
- package/layout/sizing-options.service.d.ts +3 -0
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/messages.d.ts +35 -98
- package/navigation/navigable-settings.d.ts +15 -1
- package/navigation/navigation-cell.interface.d.ts +2 -5
- package/navigation/navigation-row.interface.d.ts +2 -5
- package/package.json +19 -19
- package/pager/pager-info.component.d.ts +1 -1
- package/pager/pager-input.component.d.ts +1 -48
- package/pager/pager-next-buttons.component.d.ts +1 -1
- package/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/pager/pager-page-sizes.component.d.ts +3 -92
- package/pager/pager-prev-buttons.component.d.ts +1 -1
- package/pager/pager-settings.d.ts +9 -38
- package/pdf/pdf-margin.component.d.ts +9 -0
- package/pdf/pdf-margin.interface.d.ts +0 -5
- package/pdf/pdf.module.d.ts +7 -16
- package/rendering/common/row-class.d.ts +4 -4
- package/rendering/common/spacer.component.d.ts +2 -1
- package/rendering/toolbar/toolbar-position.d.ts +18 -1
- package/row-reordering/row-reorder.service.d.ts +1 -0
- package/row-reordering/types.d.ts +1 -1
- package/schematics/ngAdd/index.js +2 -2
- package/scrolling/content-scroll-event.d.ts +1 -1
- package/scrolling/scroll-request.service.d.ts +2 -1
- package/scrolling/scrollmode.d.ts +4 -4
- package/selection/types.d.ts +31 -48
|
@@ -8,65 +8,14 @@ import { CellTemplateDirective } from '../rendering/cell-template.directive';
|
|
|
8
8
|
import { IdService } from '../common/id.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
* Represents the checkbox for selecting
|
|
12
|
-
* defined as empty, it renders a default checkbox for row selection.
|
|
13
|
-
* You can also define the content of the column inside an `<ng-template>` tag.
|
|
14
|
-
* The input requires you to include the `SelectionCheckbox` option.
|
|
15
|
-
*
|
|
16
|
-
* The template context is set to the current data item and the following additional fields are passed:
|
|
17
|
-
* - `columnIndex`—The current column index.
|
|
18
|
-
* - `rowIndex`—The current data row index. If inside a new item row, it will be `-1`.
|
|
19
|
-
* - `dataItem`—The current data item.
|
|
20
|
-
* - `column`—The current column instance.
|
|
21
|
-
* - `isNew`—The state of the current item.
|
|
22
|
-
*
|
|
23
|
-
* For more examples, refer to:
|
|
24
|
-
* - [Selecting or deselecting all items on a page]({% slug selection_grid %}#toc-select-all-feature)
|
|
25
|
-
* - [Persisting the selection]({% slug selection_grid %}#toc-in-combination-with-the-select-all-feature)
|
|
11
|
+
* Represents the checkbox column for selecting rows in the Grid. [See example](slug:grid_row_selection#toc-select-all-checkbox).
|
|
26
12
|
*
|
|
27
13
|
* @example
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* <kendo-grid [data]="gridData" [selectable]="{enabled: true, checkboxOnly: true}">
|
|
34
|
-
* <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
|
|
35
|
-
* </kendo-grid-column>
|
|
36
|
-
* <kendo-grid-column field="ProductName" title="Product Name">
|
|
37
|
-
* </kendo-grid-column>
|
|
38
|
-
* <kendo-grid-checkbox-column title="Default checkbox">
|
|
39
|
-
* </kendo-grid-checkbox-column>
|
|
40
|
-
* <kendo-grid-checkbox-column title="Custom checkbox">
|
|
41
|
-
* <ng-template kendoGridCellTemplate let-idx="rowIndex">
|
|
42
|
-
* Select row <input [kendoGridSelectionCheckbox]="idx" />
|
|
43
|
-
* </ng-template>
|
|
44
|
-
* </kendo-grid-checkbox-column>
|
|
45
|
-
* </kendo-grid>
|
|
46
|
-
* `
|
|
47
|
-
* })
|
|
48
|
-
*
|
|
49
|
-
* class AppComponent {
|
|
50
|
-
* public gridData: any[];
|
|
51
|
-
*
|
|
52
|
-
* constructor() {
|
|
53
|
-
* this.gridData = products;
|
|
54
|
-
* }
|
|
55
|
-
* }
|
|
56
|
-
*
|
|
57
|
-
* const products = [{
|
|
58
|
-
* "ProductID": 1,
|
|
59
|
-
* "ProductName": "Chai",
|
|
60
|
-
* "UnitPrice": 18.0000,
|
|
61
|
-
* "Discontinued": true
|
|
62
|
-
* }, {
|
|
63
|
-
* "ProductID": 2,
|
|
64
|
-
* "ProductName": "Chang",
|
|
65
|
-
* "UnitPrice": 19.0000,
|
|
66
|
-
* "Discontinued": false
|
|
67
|
-
* }
|
|
68
|
-
* ];
|
|
69
|
-
*
|
|
14
|
+
* ```hmtl
|
|
15
|
+
* <kendo-grid [selectable]="{enabled: true, checkboxOnly: true}">
|
|
16
|
+
* <kendo-grid-checkbox-column title="Default checkbox"></kendo-grid-checkbox-column>
|
|
17
|
+
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
18
|
+
* </kendo-grid>
|
|
70
19
|
* ```
|
|
71
20
|
*/
|
|
72
21
|
export declare class CheckboxColumnComponent extends ColumnBase {
|
package/columns/column-base.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ export declare class ColumnBase {
|
|
|
30
30
|
*/
|
|
31
31
|
matchesMedia: boolean;
|
|
32
32
|
/**
|
|
33
|
-
* The column index after reordering.
|
|
33
|
+
* The column index after reordering. The `orderIndex` is a read-only property. Setting this field does not affect column order.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* @default 0
|
|
36
36
|
*/
|
|
37
37
|
orderIndex: number;
|
|
38
38
|
/**
|
|
@@ -64,12 +64,14 @@ export declare class ColumnBase {
|
|
|
64
64
|
reorderable: boolean;
|
|
65
65
|
/**
|
|
66
66
|
* The width (in pixels) below which the user is not able to resize the column by using the UI ([see example]({% slug resizing_columns_grid %}#toc-limiting-the-resizing)).
|
|
67
|
+
* The `autoFitColumn` and `autoFitColumns` methods have higher priority.
|
|
67
68
|
* @default 10
|
|
68
69
|
*/
|
|
69
70
|
minResizableWidth: number;
|
|
70
71
|
/**
|
|
71
72
|
* The width (in pixels) above which the user is not able to resize the column by using the UI ([see example]({% slug resizing_columns_grid %}#toc-limiting-the-resizing)).
|
|
72
73
|
* By default, the maximum width is not restricted.
|
|
74
|
+
* The `autoFitColumn` and `autoFitColumns` methods have higher priority.
|
|
73
75
|
*/
|
|
74
76
|
maxResizableWidth: number;
|
|
75
77
|
/**
|
|
@@ -90,44 +92,6 @@ export declare class ColumnBase {
|
|
|
90
92
|
*
|
|
91
93
|
* @default false
|
|
92
94
|
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```ts
|
|
95
|
-
* _@Component({
|
|
96
|
-
* selector: 'my-app',
|
|
97
|
-
* template: `
|
|
98
|
-
* <kendo-grid [data]="gridData" [scrollable]="scrollable" style="height: 200px">
|
|
99
|
-
* <kendo-grid-column field="ProductID" title="Product ID" [width]="120" [locked]="true">
|
|
100
|
-
* </kendo-grid-column>
|
|
101
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200">
|
|
102
|
-
* </kendo-grid-column>
|
|
103
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
104
|
-
* </kendo-grid-column>
|
|
105
|
-
* </kendo-grid>
|
|
106
|
-
* `
|
|
107
|
-
* })
|
|
108
|
-
*
|
|
109
|
-
* class AppComponent {
|
|
110
|
-
* public gridData: any[];
|
|
111
|
-
*
|
|
112
|
-
* constructor() {
|
|
113
|
-
* this.gridData = products;
|
|
114
|
-
* }
|
|
115
|
-
* }
|
|
116
|
-
*
|
|
117
|
-
* const products = [{
|
|
118
|
-
* "ProductID": 1,
|
|
119
|
-
* "ProductName": "Chai",
|
|
120
|
-
* "UnitPrice": 18.0000,
|
|
121
|
-
* "Discontinued": true
|
|
122
|
-
* }, {
|
|
123
|
-
* "ProductID": 2,
|
|
124
|
-
* "ProductName": "Chang",
|
|
125
|
-
* "UnitPrice": 19.0000,
|
|
126
|
-
* "Discontinued": false
|
|
127
|
-
* }
|
|
128
|
-
* ];
|
|
129
|
-
*
|
|
130
|
-
* ```
|
|
131
95
|
*/
|
|
132
96
|
set locked(value: boolean);
|
|
133
97
|
get locked(): boolean;
|
|
@@ -148,85 +112,35 @@ export declare class ColumnBase {
|
|
|
148
112
|
* Sets the condition that needs to be satisfied for a column to remain visible ([see example]({% slug styling_responsive_grid %}#toc-columns)).
|
|
149
113
|
* If you set the `hidden` property, the behavior of `media` is overridden.
|
|
150
114
|
*
|
|
151
|
-
* @example
|
|
152
|
-
* ```html
|
|
153
|
-
* <kendo-grid>
|
|
154
|
-
* <kendo-grid-column field="UnitPrice" media="(min-width: 320px)">
|
|
155
|
-
* </kendo-grid-column>
|
|
156
|
-
* </kendo-grid>
|
|
157
|
-
* ```
|
|
158
|
-
*
|
|
159
115
|
* Accepts the device identifiers that are [available in Bootstrap 4](https://v4-alpha.getbootstrap.com/layout/grid/#grid-options)
|
|
160
116
|
* ([see example]({% slug styling_responsive_grid %}#toc-bootstrap-4-compatibility)):
|
|
161
|
-
* * `"xs"`—Equivalent to `"(max-width: 576px)"`.
|
|
162
|
-
* * `"sm"`—Equivalent to `"(min-width: 576px)"`.
|
|
163
|
-
* * `"md"`—Equivalent to `"(min-width: 768px)"`.
|
|
164
|
-
* * `"lg"`—Equivalent to `"(min-width: 992px)"`.
|
|
165
|
-
* * `"xl"`—Equivalent to `"(min-width: 1200px)"`.
|
|
166
|
-
*
|
|
167
|
-
* @example
|
|
168
|
-
* ```html
|
|
169
|
-
* <kendo-grid>
|
|
170
|
-
* <kendo-grid-column field="UnitPrice" media="md">
|
|
171
|
-
* </kendo-grid-column>
|
|
172
|
-
* </kendo-grid>
|
|
173
|
-
* ```
|
|
174
117
|
*/
|
|
175
118
|
media: string;
|
|
176
119
|
/**
|
|
177
120
|
* Specifies if the column can be locked or unlocked from the column menu or by reordering the columns.
|
|
121
|
+
* @default true
|
|
178
122
|
*/
|
|
179
123
|
lockable: boolean;
|
|
180
124
|
/**
|
|
181
125
|
* Specifies if the column can be stuck or unstuck from the column menu.
|
|
126
|
+
* @default true
|
|
182
127
|
*/
|
|
183
128
|
stickable: boolean;
|
|
184
129
|
/**
|
|
185
130
|
* Specifies if the column menu will be shown for the column.
|
|
131
|
+
* @default true
|
|
186
132
|
*/
|
|
187
133
|
columnMenu: boolean;
|
|
188
134
|
/**
|
|
189
135
|
* Specifies if the column will be included in the column-chooser list.
|
|
136
|
+
* @default true
|
|
190
137
|
*/
|
|
191
138
|
includeInChooser: boolean;
|
|
192
139
|
/**
|
|
193
140
|
* Sets the custom styles for the table cells (excluding the footer and header ones) of the column. Under the hood,
|
|
194
141
|
* to apply the property, the `style` option uses the
|
|
195
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive.
|
|
142
|
+
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-cells).
|
|
196
143
|
*
|
|
197
|
-
* @example
|
|
198
|
-
* ```ts
|
|
199
|
-
* _@Component({
|
|
200
|
-
* selector: 'my-app',
|
|
201
|
-
* template: `
|
|
202
|
-
* <kendo-grid [data]="gridData" style="height: 200px">
|
|
203
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200" [style]="{'text-align': 'right'}">
|
|
204
|
-
* </kendo-grid-column>
|
|
205
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
206
|
-
* </kendo-grid-column>
|
|
207
|
-
* </kendo-grid>
|
|
208
|
-
* `
|
|
209
|
-
* })
|
|
210
|
-
*
|
|
211
|
-
* class AppComponent {
|
|
212
|
-
* public gridData: any[];
|
|
213
|
-
*
|
|
214
|
-
* constructor() {
|
|
215
|
-
* this.gridData = [{
|
|
216
|
-
* "ProductID": 1,
|
|
217
|
-
* "ProductName": "Chai",
|
|
218
|
-
* "UnitPrice": 18.0000,
|
|
219
|
-
* "Discontinued": true
|
|
220
|
-
* }, {
|
|
221
|
-
* "ProductID": 2,
|
|
222
|
-
* "ProductName": "Chang",
|
|
223
|
-
* "UnitPrice": 19.0000,
|
|
224
|
-
* "Discontinued": false
|
|
225
|
-
* }];
|
|
226
|
-
* }
|
|
227
|
-
* }
|
|
228
|
-
*
|
|
229
|
-
* ```
|
|
230
144
|
*/
|
|
231
145
|
style: {
|
|
232
146
|
[key: string]: string;
|
|
@@ -234,41 +148,8 @@ export declare class ColumnBase {
|
|
|
234
148
|
/**
|
|
235
149
|
* Sets the custom styles for the header cell of the column. Under the hood, to apply the property,
|
|
236
150
|
* the `headerStyle` option uses the
|
|
237
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive.
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
* ```ts
|
|
241
|
-
* _@Component({
|
|
242
|
-
* selector: 'my-app',
|
|
243
|
-
* template: `
|
|
244
|
-
* <kendo-grid [data]="gridData" style="height: 200px">
|
|
245
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200" [headerStyle]="{'text-align': 'right'}">
|
|
246
|
-
* </kendo-grid-column>
|
|
247
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
248
|
-
* </kendo-grid-column>
|
|
249
|
-
* </kendo-grid>
|
|
250
|
-
* `
|
|
251
|
-
* })
|
|
252
|
-
*
|
|
253
|
-
* class AppComponent {
|
|
254
|
-
* public gridData: any[];
|
|
151
|
+
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-header).
|
|
255
152
|
*
|
|
256
|
-
* constructor() {
|
|
257
|
-
* this.gridData = [{
|
|
258
|
-
* "ProductID": 1,
|
|
259
|
-
* "ProductName": "Chai",
|
|
260
|
-
* "UnitPrice": 18.0000,
|
|
261
|
-
* "Discontinued": true
|
|
262
|
-
* }, {
|
|
263
|
-
* "ProductID": 2,
|
|
264
|
-
* "ProductName": "Chang",
|
|
265
|
-
* "UnitPrice": 19.0000,
|
|
266
|
-
* "Discontinued": false
|
|
267
|
-
* }];
|
|
268
|
-
* }
|
|
269
|
-
* }
|
|
270
|
-
*
|
|
271
|
-
* ```
|
|
272
153
|
*/
|
|
273
154
|
headerStyle: {
|
|
274
155
|
[key: string]: string;
|
|
@@ -276,41 +157,8 @@ export declare class ColumnBase {
|
|
|
276
157
|
/**
|
|
277
158
|
* Sets the custom styles for the filter row cell. Under the hood, to apply the property,
|
|
278
159
|
* the `filterStyle` option uses the
|
|
279
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive.
|
|
280
|
-
*
|
|
281
|
-
* @example
|
|
282
|
-
* ```ts
|
|
283
|
-
* _@Component({
|
|
284
|
-
* selector: 'my-app',
|
|
285
|
-
* template: `
|
|
286
|
-
* <kendo-grid [data]="gridData" style="height: 180px" [filterable]="true">
|
|
287
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200" [filterStyle]="{'padding': '25px'}">
|
|
288
|
-
* </kendo-grid-column>
|
|
289
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="200">
|
|
290
|
-
* </kendo-grid-column>
|
|
291
|
-
* </kendo-grid>
|
|
292
|
-
* `
|
|
293
|
-
* })
|
|
294
|
-
*
|
|
295
|
-
* export class AppComponent {
|
|
296
|
-
* public gridData: any[];
|
|
297
|
-
*
|
|
298
|
-
* constructor() {
|
|
299
|
-
* this.gridData = [{
|
|
300
|
-
* "ProductID": 1,
|
|
301
|
-
* "ProductName": "Chai",
|
|
302
|
-
* "UnitPrice": 18.0000,
|
|
303
|
-
* "Discontinued": true
|
|
304
|
-
* }, {
|
|
305
|
-
* "ProductID": 2,
|
|
306
|
-
* "ProductName": "Chang",
|
|
307
|
-
* "UnitPrice": 19.0000,
|
|
308
|
-
* "Discontinued": false
|
|
309
|
-
* }];
|
|
310
|
-
* }
|
|
311
|
-
* }
|
|
160
|
+
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-filter-row-cells).
|
|
312
161
|
*
|
|
313
|
-
* ```
|
|
314
162
|
*/
|
|
315
163
|
filterStyle: {
|
|
316
164
|
[key: string]: string;
|
|
@@ -318,95 +166,18 @@ export declare class ColumnBase {
|
|
|
318
166
|
/**
|
|
319
167
|
* Sets the custom styles for the footer cell of the column. Under the hood, to apply the property,
|
|
320
168
|
* the `footerStyle` option uses the
|
|
321
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive.
|
|
169
|
+
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-footer).
|
|
322
170
|
*
|
|
323
|
-
* @example
|
|
324
|
-
* ```ts
|
|
325
|
-
* _@Component({
|
|
326
|
-
* selector: 'my-app',
|
|
327
|
-
* template: `
|
|
328
|
-
* <kendo-grid [data]="gridData" style="height: 200px">
|
|
329
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200" [footerStyle]="{'text-align': 'right'}">
|
|
330
|
-
* <ng-template kendoGridFooterTemplate>
|
|
331
|
-
* footer text
|
|
332
|
-
* </ng-template>
|
|
333
|
-
* </kendo-grid-column>
|
|
334
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
335
|
-
* </kendo-grid-column>
|
|
336
|
-
* </kendo-grid>
|
|
337
|
-
* `
|
|
338
|
-
* })
|
|
339
|
-
*
|
|
340
|
-
* class AppComponent {
|
|
341
|
-
* public gridData: any[];
|
|
342
|
-
*
|
|
343
|
-
* constructor() {
|
|
344
|
-
* this.gridData = [{
|
|
345
|
-
* "ProductID": 1,
|
|
346
|
-
* "ProductName": "Chai",
|
|
347
|
-
* "UnitPrice": 18.0000,
|
|
348
|
-
* "Discontinued": true
|
|
349
|
-
* }, {
|
|
350
|
-
* "ProductID": 2,
|
|
351
|
-
* "ProductName": "Chang",
|
|
352
|
-
* "UnitPrice": 19.0000,
|
|
353
|
-
* "Discontinued": false
|
|
354
|
-
* }];
|
|
355
|
-
* }
|
|
356
|
-
* }
|
|
357
|
-
*
|
|
358
|
-
* ```
|
|
359
171
|
*/
|
|
360
172
|
footerStyle: {
|
|
361
173
|
[key: string]: string;
|
|
362
174
|
};
|
|
363
175
|
/**
|
|
364
176
|
* Sets the custom CSS classes to the column cells. Under the hood, to apply the property, the `class` option uses the
|
|
365
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive.
|
|
177
|
+
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-cells).
|
|
366
178
|
* To customize header and footer column cells, use the [headerClass]({% slug api_grid_columncomponent %}#toc-headerclass)
|
|
367
179
|
* and [footerClass]({% slug api_grid_columncomponent %}#toc-footerclass) inputs.
|
|
368
180
|
*
|
|
369
|
-
* @example
|
|
370
|
-
* ```ts
|
|
371
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
372
|
-
*
|
|
373
|
-
* _@Component({
|
|
374
|
-
* selector: 'my-app',
|
|
375
|
-
* encapsulation: ViewEncapsulation.None,
|
|
376
|
-
* styles: [`
|
|
377
|
-
* tr .myClass {
|
|
378
|
-
* text-align: right
|
|
379
|
-
* }
|
|
380
|
-
* `],
|
|
381
|
-
* template: `
|
|
382
|
-
* <kendo-grid [data]="gridData" style="height: 200px">
|
|
383
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200" [class]="{'myClass': true}">
|
|
384
|
-
* </kendo-grid-column>
|
|
385
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
386
|
-
* </kendo-grid-column>
|
|
387
|
-
* </kendo-grid>
|
|
388
|
-
* `
|
|
389
|
-
* })
|
|
390
|
-
*
|
|
391
|
-
* class AppComponent {
|
|
392
|
-
* public gridData: any[];
|
|
393
|
-
*
|
|
394
|
-
* constructor() {
|
|
395
|
-
* this.gridData = [{
|
|
396
|
-
* "ProductID": 1,
|
|
397
|
-
* "ProductName": "Chai",
|
|
398
|
-
* "UnitPrice": 18.0000,
|
|
399
|
-
* "Discontinued": true
|
|
400
|
-
* }, {
|
|
401
|
-
* "ProductID": 2,
|
|
402
|
-
* "ProductName": "Chang",
|
|
403
|
-
* "UnitPrice": 19.0000,
|
|
404
|
-
* "Discontinued": false
|
|
405
|
-
* }];
|
|
406
|
-
* }
|
|
407
|
-
* }
|
|
408
|
-
*
|
|
409
|
-
* ```
|
|
410
181
|
*/
|
|
411
182
|
cssClass: string | string[] | Set<string> | {
|
|
412
183
|
[key: string]: any;
|
|
@@ -414,49 +185,8 @@ export declare class ColumnBase {
|
|
|
414
185
|
/**
|
|
415
186
|
* Sets the custom CSS classes to the column header cell. Under the hood, to apply the property,
|
|
416
187
|
* the `headerClass` option uses the
|
|
417
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive.
|
|
418
|
-
*
|
|
419
|
-
* @example
|
|
420
|
-
* ```ts
|
|
421
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
422
|
-
*
|
|
423
|
-
* _@Component({
|
|
424
|
-
* selector: 'my-app',
|
|
425
|
-
* encapsulation: ViewEncapsulation.None,
|
|
426
|
-
* styles: [`
|
|
427
|
-
* tr .myClass {
|
|
428
|
-
* text-align: right
|
|
429
|
-
* }
|
|
430
|
-
* `],
|
|
431
|
-
* template: `
|
|
432
|
-
* <kendo-grid [data]="gridData" style="height: 200px">
|
|
433
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200" [headerClass]="{'myClass': true}">
|
|
434
|
-
* </kendo-grid-column>
|
|
435
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
436
|
-
* </kendo-grid-column>
|
|
437
|
-
* </kendo-grid>
|
|
438
|
-
* `
|
|
439
|
-
* })
|
|
440
|
-
*
|
|
441
|
-
* class AppComponent {
|
|
442
|
-
* public gridData: any[];
|
|
188
|
+
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-header).
|
|
443
189
|
*
|
|
444
|
-
* constructor() {
|
|
445
|
-
* this.gridData = [{
|
|
446
|
-
* "ProductID": 1,
|
|
447
|
-
* "ProductName": "Chai",
|
|
448
|
-
* "UnitPrice": 18.0000,
|
|
449
|
-
* "Discontinued": true
|
|
450
|
-
* }, {
|
|
451
|
-
* "ProductID": 2,
|
|
452
|
-
* "ProductName": "Chang",
|
|
453
|
-
* "UnitPrice": 19.0000,
|
|
454
|
-
* "Discontinued": false
|
|
455
|
-
* }];
|
|
456
|
-
* }
|
|
457
|
-
* }
|
|
458
|
-
*
|
|
459
|
-
* ```
|
|
460
190
|
*/
|
|
461
191
|
headerClass: string | string[] | Set<string> | {
|
|
462
192
|
[key: string]: any;
|
|
@@ -464,47 +194,8 @@ export declare class ColumnBase {
|
|
|
464
194
|
/**
|
|
465
195
|
* Sets the custom CSS classes to the filter row cell. Under the hood, to apply the property,
|
|
466
196
|
* the `filterClass` option uses the
|
|
467
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive.
|
|
468
|
-
*
|
|
469
|
-
* @example
|
|
470
|
-
* ```ts
|
|
471
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
472
|
-
*
|
|
473
|
-
* _@Component({
|
|
474
|
-
* selector: 'my-app',
|
|
475
|
-
* encapsulation: ViewEncapsulation.None,
|
|
476
|
-
* styles: [`
|
|
477
|
-
* .k-grid-header .myClass { background-color: #ffff00; }
|
|
478
|
-
* `],
|
|
479
|
-
* template: `
|
|
480
|
-
* <kendo-grid [data]="gridData" style="height: 155px" [filterable]="true">
|
|
481
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200" [filterClass]="{'myClass': true}">
|
|
482
|
-
* </kendo-grid-column>
|
|
483
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="200">
|
|
484
|
-
* </kendo-grid-column>
|
|
485
|
-
* </kendo-grid>
|
|
486
|
-
* `
|
|
487
|
-
* })
|
|
488
|
-
*
|
|
489
|
-
* export class AppComponent {
|
|
490
|
-
* public gridData: any[];
|
|
491
|
-
*
|
|
492
|
-
* constructor() {
|
|
493
|
-
* this.gridData = [{
|
|
494
|
-
* "ProductID": 1,
|
|
495
|
-
* "ProductName": "Chai",
|
|
496
|
-
* "UnitPrice": 18.0000,
|
|
497
|
-
* "Discontinued": true
|
|
498
|
-
* }, {
|
|
499
|
-
* "ProductID": 2,
|
|
500
|
-
* "ProductName": "Chang",
|
|
501
|
-
* "UnitPrice": 19.0000,
|
|
502
|
-
* "Discontinued": false
|
|
503
|
-
* }];
|
|
504
|
-
* }
|
|
505
|
-
* }
|
|
197
|
+
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-filter-row-cells).
|
|
506
198
|
*
|
|
507
|
-
* ```
|
|
508
199
|
*/
|
|
509
200
|
filterClass: string | string[] | Set<string> | {
|
|
510
201
|
[key: string]: any;
|
|
@@ -512,52 +203,8 @@ export declare class ColumnBase {
|
|
|
512
203
|
/**
|
|
513
204
|
* Sets the custom CSS classes to the column footer cell. Under the hood, to apply the property,
|
|
514
205
|
* the `footerClass` option uses the
|
|
515
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive.
|
|
516
|
-
*
|
|
517
|
-
* @example
|
|
518
|
-
* ```ts
|
|
519
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
520
|
-
*
|
|
521
|
-
* _@Component({
|
|
522
|
-
* selector: 'my-app',
|
|
523
|
-
* encapsulation: ViewEncapsulation.None,
|
|
524
|
-
* styles: [`
|
|
525
|
-
* tr .myClass {
|
|
526
|
-
* text-align: right
|
|
527
|
-
* }
|
|
528
|
-
* `],
|
|
529
|
-
* template: `
|
|
530
|
-
* <kendo-grid [data]="gridData" style="height: 200px">
|
|
531
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200" [footerClass]="{'myClass': true}">
|
|
532
|
-
* <ng-template kendoGridFooterTemplate>
|
|
533
|
-
* footer text
|
|
534
|
-
* </ng-template>
|
|
535
|
-
* </kendo-grid-column>
|
|
536
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
537
|
-
* </kendo-grid-column>
|
|
538
|
-
* </kendo-grid>
|
|
539
|
-
* `
|
|
540
|
-
* })
|
|
541
|
-
*
|
|
542
|
-
* class AppComponent {
|
|
543
|
-
* public gridData: any[];
|
|
544
|
-
*
|
|
545
|
-
* constructor() {
|
|
546
|
-
* this.gridData = [{
|
|
547
|
-
* "ProductID": 1,
|
|
548
|
-
* "ProductName": "Chai",
|
|
549
|
-
* "UnitPrice": 18.0000,
|
|
550
|
-
* "Discontinued": true
|
|
551
|
-
* }, {
|
|
552
|
-
* "ProductID": 2,
|
|
553
|
-
* "ProductName": "Chang",
|
|
554
|
-
* "UnitPrice": 19.0000,
|
|
555
|
-
* "Discontinued": false
|
|
556
|
-
* }];
|
|
557
|
-
* }
|
|
558
|
-
* }
|
|
206
|
+
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-footer).
|
|
559
207
|
*
|
|
560
|
-
* ```
|
|
561
208
|
*/
|
|
562
209
|
footerClass: string | string[] | Set<string> | {
|
|
563
210
|
[key: string]: any;
|
|
@@ -12,56 +12,17 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
export declare function isColumnGroupComponent(column: any): column is ColumnGroupComponent;
|
|
13
13
|
/**
|
|
14
14
|
* Represents the column group header of the Grid
|
|
15
|
-
* ([more information and examples](
|
|
15
|
+
* ([more information and examples](slug:multicolumnheaders_columns_grid)).
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* Column index: {{columnIndex}} / column title: {{column.title}}
|
|
27
|
-
* </ng-template>
|
|
28
|
-
* <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
|
|
29
|
-
* </kendo-grid-column>
|
|
30
|
-
* <kendo-grid-column field="ProductName" title="Product Name">
|
|
31
|
-
* </kendo-grid-column>
|
|
32
|
-
* </kendo-grid-column-group>
|
|
33
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
34
|
-
* </kendo-grid-column>
|
|
35
|
-
* <kendo-grid-column field="Discontinued" [width]="120">
|
|
36
|
-
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
37
|
-
* <input type="checkbox" [checked]="dataItem.Discontinued" disabled/>
|
|
38
|
-
* </ng-template>
|
|
39
|
-
* </kendo-grid-column>
|
|
40
|
-
* </kendo-grid>
|
|
41
|
-
* `
|
|
42
|
-
* })
|
|
43
|
-
*
|
|
44
|
-
* class AppComponent {
|
|
45
|
-
* public gridData: any[];
|
|
46
|
-
*
|
|
47
|
-
* constructor() {
|
|
48
|
-
* this.gridData = products;
|
|
49
|
-
* }
|
|
50
|
-
* }
|
|
51
|
-
*
|
|
52
|
-
* const products = [{
|
|
53
|
-
* "ProductID": 1,
|
|
54
|
-
* "ProductName": "Chai",
|
|
55
|
-
* "UnitPrice": 18.0000,
|
|
56
|
-
* "Discontinued": true
|
|
57
|
-
* }, {
|
|
58
|
-
* "ProductID": 2,
|
|
59
|
-
* "ProductName": "Chang",
|
|
60
|
-
* "UnitPrice": 19.0000,
|
|
61
|
-
* "Discontinued": false
|
|
62
|
-
* }
|
|
63
|
-
* ];
|
|
64
|
-
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <kendo-grid [data]="gridData">
|
|
20
|
+
* <kendo-grid-column-group title="Product Info">
|
|
21
|
+
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
22
|
+
* <kendo-grid-column field="ProductName"></kendo-grid-column>
|
|
23
|
+
* </kendo-grid-column-group>
|
|
24
|
+
* <kendo-grid-column field="UnitPrice"></kendo-grid-column>
|
|
25
|
+
* </kendo-grid>
|
|
65
26
|
* ```
|
|
66
27
|
*/
|
|
67
28
|
export declare class ColumnGroupComponent extends ColumnBase {
|