@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
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PDFExportMarginComponent } from '@progress/kendo-angular-pdf-export';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Represents the Kendo UI PDFMargin component for Angular.
|
|
9
|
+
* The supported units are:
|
|
10
|
+
* `"mm"`
|
|
11
|
+
* `"cm"`
|
|
12
|
+
* `"in"`
|
|
13
|
+
* `"pt"` (default).
|
|
14
|
+
* Numbers are considered to be points (`"pt"`).
|
|
15
|
+
*/
|
|
7
16
|
export declare class PDFMarginComponent extends PDFExportMarginComponent {
|
|
8
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PDFMarginComponent, never>;
|
|
9
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<PDFMarginComponent, "kendo-grid-pdf-margin", never, {}, {}, never, never>;
|
|
@@ -6,11 +6,6 @@ import { pdf } from '@progress/kendo-drawing';
|
|
|
6
6
|
/**
|
|
7
7
|
* Specifies the margins of the page (numbers or strings with units).
|
|
8
8
|
*
|
|
9
|
-
* The supported units are:
|
|
10
|
-
* * `"mm"`
|
|
11
|
-
* * `"cm"`
|
|
12
|
-
* * `"in"`
|
|
13
|
-
* * `"pt"` (default)
|
|
14
9
|
*/
|
|
15
10
|
export interface PDFMargin extends pdf.PageMargin {
|
|
16
11
|
}
|
package/pdf/pdf.module.d.ts
CHANGED
|
@@ -14,28 +14,19 @@ import * as i5 from "@progress/kendo-angular-icons";
|
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
*
|
|
17
|
-
* ```ts
|
|
18
|
-
* // Import the Grid and PDF modules
|
|
19
|
-
* import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
|
|
20
|
-
*
|
|
21
|
-
* // The browser platform with a compiler
|
|
22
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
23
|
-
*
|
|
17
|
+
* ```ts
|
|
24
18
|
* import { NgModule } from '@angular/core';
|
|
25
|
-
*
|
|
26
|
-
*
|
|
19
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
20
|
+
* import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
|
|
27
21
|
* import { AppComponent } from './app.component';
|
|
28
22
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* imports: [BrowserModule, GridModule, PDFModule], // import Grid and PDF modules
|
|
23
|
+
* @NgModule({
|
|
24
|
+
* declarations: [AppComponent],
|
|
25
|
+
* imports: [BrowserModule, GridModule, PDFModule],
|
|
33
26
|
* bootstrap: [AppComponent]
|
|
34
27
|
* })
|
|
35
|
-
* export class AppModule {}
|
|
36
28
|
*
|
|
37
|
-
*
|
|
38
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
29
|
+
* export class AppModule {}
|
|
39
30
|
*
|
|
40
31
|
* ```
|
|
41
32
|
*/
|
|
@@ -11,9 +11,9 @@ export interface RowClassArgs extends RowArgs {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Represents the callback that is used by the
|
|
14
|
-
* [rowClass]({% slug api_grid_gridcomponent %}#toc-
|
|
14
|
+
* [rowClass]({% slug api_grid_gridcomponent %}#toc-rowclass) property.
|
|
15
15
|
*
|
|
16
|
-
* ```ts
|
|
16
|
+
* ```ts
|
|
17
17
|
* rowCallback({ dataItem, index }) {
|
|
18
18
|
* const isEven = index % 2 === 0;
|
|
19
19
|
* return {
|
|
@@ -31,7 +31,7 @@ export declare type RowClassFn = (context: RowClassArgs) => string | string[] |
|
|
|
31
31
|
* Represents the callback that is used by the
|
|
32
32
|
* [rowSelected]({% slug api_grid_gridcomponent %}#toc-rowselected) property.
|
|
33
33
|
*
|
|
34
|
-
* ```ts
|
|
34
|
+
* ```ts
|
|
35
35
|
* rowCallback({ dataItem, index }) {
|
|
36
36
|
* return index % 2 === 0;
|
|
37
37
|
* }
|
|
@@ -41,7 +41,7 @@ export declare type RowSelectedFn = (context: RowArgs) => boolean;
|
|
|
41
41
|
/**
|
|
42
42
|
* Represents the callback that is used to determine whether a given data row will be sticky.
|
|
43
43
|
*
|
|
44
|
-
* ```ts
|
|
44
|
+
* ```ts
|
|
45
45
|
* rowStickyCallback({ dataItem, index }) {
|
|
46
46
|
* return index % 2 === 0;
|
|
47
47
|
* }
|
|
@@ -7,7 +7,8 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* Represents the Kendo UI GridSpacer component for Angular.
|
|
8
8
|
* Used to give additional white space between the Pager inner elements,
|
|
9
9
|
* and provides a way for customizing the spacer width.
|
|
10
|
-
* It can also be used in any flex container within the Grid
|
|
10
|
+
* It can also be used in any flex container within the Grid
|
|
11
|
+
* ([see example](slug:toolbartemplate_grid#toc-defining-the-spacing-between-toolbar-elements)).
|
|
11
12
|
*/
|
|
12
13
|
export declare class GridSpacerComponent {
|
|
13
14
|
hostClass: boolean;
|
|
@@ -2,4 +2,21 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Defines the settings for `position` property of the the Grid Toolbar Template. [See example](slug:toolbartemplate_grid#toc-setting-the-toolbar-position)
|
|
7
|
+
*
|
|
8
|
+
* The possible values are:
|
|
9
|
+
* * `top`—Displays the Toolbar a the top of the Grid.
|
|
10
|
+
* * `bottom`—Displays the Toolbar at the bottom of the Grid.
|
|
11
|
+
* * `both`—Displays the Toolbar at the top and bottom of the Grid.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-grid >
|
|
16
|
+
* <ng-template kendoGridToolbarTemplate position="bottom" let-position="position">
|
|
17
|
+
* <button (click)="onClick()">Custom action</button>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-grid>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare type ToolbarPosition = 'top' | 'bottom' | 'both';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* The returned type of the `rowReorder` event
|
|
7
|
-
* ([see example](
|
|
7
|
+
* ([see example](slug:reordering_rows_grid)).
|
|
8
8
|
*/
|
|
9
9
|
export interface RowReorderEvent {
|
|
10
10
|
/**
|
|
@@ -4,9 +4,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
|
|
6
6
|
// peer dep of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '12.0.
|
|
7
|
+
'@progress/kendo-angular-treeview': '12.0.1-develop.1',
|
|
8
8
|
// peer dependency of kendo-angular-inputs
|
|
9
|
-
'@progress/kendo-angular-dialog': '12.0.
|
|
9
|
+
'@progress/kendo-angular-dialog': '12.0.1-develop.1',
|
|
10
10
|
// peer dependency of kendo-angular-icons
|
|
11
11
|
'@progress/kendo-svg-icons': '^1.0.0'
|
|
12
12
|
} });
|
|
@@ -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
|
-
* Arguments for the `contentScroll` event.
|
|
6
|
+
* Arguments for the [`contentScroll`](slig:api_grid_gridcomponent#toc-contentscroll) event.
|
|
7
7
|
*/
|
|
8
8
|
export interface ContentScrollEvent {
|
|
9
9
|
/**
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Arguments for the scrollTo method. Specifies to which row
|
|
8
|
+
* Arguments for the `scrollTo` method. Specifies to which row or column should the Grid scroll to.
|
|
9
|
+
* [See example](slug:scrollmmodes_grid#toc-scrolling-to-a-specific-row-and-column-index).
|
|
9
10
|
*/
|
|
10
11
|
export interface ScrollRequest {
|
|
11
12
|
row?: number;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* The scroll mode of the Grid.
|
|
7
7
|
*
|
|
8
8
|
* The available values are:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* * `none`—Scrollbars are hidden. The Grid cannot be scrolled.
|
|
10
|
+
* * `scrollable`—Displays scrollbars in Grid.
|
|
11
|
+
* * `virtual`—Enables the [virtual scroll mode](slug:virtualscrolling_grid) of the Grid.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* ```html
|
|
14
|
+
* ```html
|
|
15
15
|
* <kendo-grid scrollable="scrollable"></kendo-grid>
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
package/selection/types.d.ts
CHANGED
|
@@ -6,15 +6,14 @@ import { ColumnComponent } from './../columns/column.component';
|
|
|
6
6
|
import { RowArgs } from './../rendering/common/row-args';
|
|
7
7
|
/**
|
|
8
8
|
* Represents the callback that is used by the
|
|
9
|
-
* [cellSelected]({% slug api_grid_gridcomponent %}#toc-cellselected) property.
|
|
9
|
+
* [cellSelected]({% slug api_grid_gridcomponent %}#toc-cellselected) property ([see example](slug:grid_selection_custom#toc-setting-the-selected-cells)).
|
|
10
10
|
*/
|
|
11
11
|
export declare type CellSelectedFn = (row: RowArgs, column: ColumnComponent, colIndex: number) => {
|
|
12
12
|
selected: boolean;
|
|
13
13
|
item: CellSelectionItem;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* ([see example]({% slug selection_grid %}#toc-in-combination-with-the-select-all-feature)).
|
|
16
|
+
* Arguments for the Grid [`selectionChange`](slug:api_grid_gridcomponent#toc-selectionchange) event.
|
|
18
17
|
*/
|
|
19
18
|
export interface SelectionEvent {
|
|
20
19
|
/**
|
|
@@ -46,48 +45,17 @@ export interface SelectionEvent {
|
|
|
46
45
|
* The settings for the selection functionality of the Grid ([more information and example]({% slug selection_grid %}#toc-setup)).
|
|
47
46
|
*
|
|
48
47
|
* @example
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* <kendo-grid [data]="gridData" [selectable]="{ checkboxOnly: true, mode: 'multiple' }">
|
|
55
|
-
* <kendo-grid-column field="ProductID" title="Product ID">
|
|
56
|
-
* </kendo-grid-column>
|
|
57
|
-
* <kendo-grid-column field="ProductName" title="Product Name">
|
|
58
|
-
* </kendo-grid-column>
|
|
59
|
-
* </kendo-grid>
|
|
60
|
-
* `
|
|
61
|
-
* })
|
|
62
|
-
*
|
|
63
|
-
* class AppComponent {
|
|
64
|
-
* public gridData: any[];
|
|
65
|
-
*
|
|
66
|
-
* constructor() {
|
|
67
|
-
* this.gridData = products;
|
|
68
|
-
* }
|
|
69
|
-
* }
|
|
70
|
-
*
|
|
71
|
-
* const products = [{
|
|
72
|
-
* "ProductID": 1,
|
|
73
|
-
* "ProductName": "Chai",
|
|
74
|
-
* "UnitPrice": 18.0000,
|
|
75
|
-
* "Discontinued": true
|
|
76
|
-
* }, {
|
|
77
|
-
* "ProductID": 2,
|
|
78
|
-
* "ProductName": "Chang",
|
|
79
|
-
* "UnitPrice": 19.0000,
|
|
80
|
-
* "Discontinued": false
|
|
81
|
-
* }
|
|
82
|
-
* ];
|
|
83
|
-
*
|
|
48
|
+
* ```html
|
|
49
|
+
* <kendo-grid [data]="gridData" [selectable]="{ checkboxOnly: true, mode: 'multiple' }">
|
|
50
|
+
* <kendo-grid-column field="ProductID"> </kendo-grid-column>
|
|
51
|
+
* <kendo-grid-column field="ProductName"> </kendo-grid-column>
|
|
52
|
+
* </kendo-grid>
|
|
84
53
|
* ```
|
|
85
54
|
*/
|
|
86
55
|
export interface SelectableSettings {
|
|
87
56
|
/**
|
|
88
57
|
* Determines if selection is allowed.
|
|
89
58
|
*
|
|
90
|
-
* @default true
|
|
91
59
|
*/
|
|
92
60
|
enabled?: boolean;
|
|
93
61
|
/**
|
|
@@ -95,36 +63,51 @@ export interface SelectableSettings {
|
|
|
95
63
|
* If enabled, clicking the row itself will not select the row.
|
|
96
64
|
* Applicable if at least one checkbox column is present.
|
|
97
65
|
*
|
|
98
|
-
* @default true
|
|
99
66
|
*/
|
|
100
67
|
checkboxOnly?: boolean;
|
|
101
68
|
/**
|
|
102
|
-
*
|
|
103
|
-
* * `single`
|
|
104
|
-
* * `multiple`
|
|
105
|
-
*
|
|
106
|
-
* @default "multiple"
|
|
69
|
+
* Determines the selectable mode.
|
|
107
70
|
*/
|
|
108
71
|
mode?: SelectableMode;
|
|
109
72
|
/**
|
|
110
73
|
* Determines if cell selection is allowed.
|
|
111
74
|
*
|
|
112
|
-
* @default false
|
|
113
75
|
*/
|
|
114
76
|
cell?: boolean;
|
|
115
77
|
/**
|
|
116
78
|
* Determines if drag selection is allowed.
|
|
117
79
|
*
|
|
118
|
-
* @default false
|
|
119
80
|
*/
|
|
120
81
|
drag?: boolean;
|
|
121
82
|
}
|
|
122
83
|
/**
|
|
123
|
-
* Represents the available selection modes.
|
|
84
|
+
* Represents the available selection modes. [See example](slug:grid_row_selection).
|
|
85
|
+
*
|
|
86
|
+
* The available values are:
|
|
87
|
+
* * `single`—Enables single selection. If you click the selected row, it will not be deselected. [See example](slug:grid_row_selection#toc-single-row-selection).
|
|
88
|
+
* * `multiple`—Enables multiple selection. [See example](slug:grid_row_selection#toc-multiple-rows-selection).
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```html
|
|
92
|
+
* <kendo-grid [selectable]="{mode: 'multiple'}"></kendo-grid>
|
|
93
|
+
* ```
|
|
124
94
|
*/
|
|
125
95
|
export declare type SelectableMode = "single" | "multiple";
|
|
126
96
|
/**
|
|
127
97
|
* Represents the possible states of the select-all checkbox.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```html
|
|
101
|
+
* <kendo-grid-column>
|
|
102
|
+
* <ng-template kendoGridHeaderTemplate>
|
|
103
|
+
* <input
|
|
104
|
+
* kendoGridSelectAllCheckbox
|
|
105
|
+
* state="indeterminate"
|
|
106
|
+
* ...
|
|
107
|
+
* />
|
|
108
|
+
* </ng-template>
|
|
109
|
+
* <kendo-grid-column>
|
|
110
|
+
* ```
|
|
128
111
|
*/
|
|
129
112
|
export declare type SelectAllCheckboxState = "checked" | "unchecked" | "indeterminate";
|
|
130
113
|
/**
|