@progress/kendo-angular-grid 19.1.2-develop.4 → 19.1.2-develop.6
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/adaptiveness/adaptive-mode.d.ts +1 -5
- package/aggregates/aggregate-types.d.ts +6 -6
- package/aggregates/status-bar-template.directive.d.ts +6 -4
- package/column-menu/column-locked-change-event.d.ts +1 -1
- package/column-menu/column-menu-autosize-all.component.d.ts +11 -2
- package/column-menu/column-menu-autosize.component.d.ts +14 -6
- package/column-menu/column-menu-chooser.component.d.ts +13 -5
- package/column-menu/column-menu-expandable-item.interface.d.ts +3 -3
- package/column-menu/column-menu-filter.component.d.ts +18 -5
- package/column-menu/column-menu-item-base.d.ts +2 -2
- package/column-menu/column-menu-item-content-template.directive.d.ts +4 -4
- package/column-menu/column-menu-item.component.d.ts +14 -7
- package/column-menu/column-menu-item.directive.d.ts +29 -1
- package/column-menu/column-menu-lock.component.d.ts +11 -3
- package/column-menu/column-menu-position.component.d.ts +16 -8
- package/column-menu/column-menu-settings.interface.d.ts +5 -4
- package/column-menu/column-menu-sort.component.d.ts +11 -9
- package/column-menu/column-menu-stick.component.d.ts +13 -5
- package/column-menu/column-menu-template.directive.d.ts +5 -7
- package/column-menu/column-menu.component.d.ts +17 -7
- package/column-menu/column-menu.service.d.ts +8 -9
- package/column-resizing/column-resize.interface.d.ts +9 -8
- package/columns/cell-rowspan.d.ts +5 -1
- package/columns/checkbox-column.component.d.ts +7 -5
- package/columns/column-base.d.ts +38 -52
- package/columns/column-group.component.d.ts +3 -2
- package/columns/column.component.d.ts +17 -12
- package/columns/command-column.component.d.ts +6 -7
- package/columns/reorder-column.component.d.ts +10 -2
- package/columns/sort-settings.d.ts +15 -18
- package/columns/span-column.component.d.ts +11 -11
- package/common/adaptiveness.service.d.ts +2 -2
- package/common/cell-click-event-args.interface.d.ts +8 -6
- package/common/clipboard-types.d.ts +27 -31
- package/common/clipboard.directive.d.ts +12 -8
- package/common/create-form-group.d.ts +3 -1
- package/common/fetch-data-callback.d.ts +4 -2
- package/common/field-datatype.d.ts +2 -2
- package/common/pager-settings.d.ts +36 -20
- package/common/preventable-event.d.ts +3 -7
- package/common/remove-confirmation.d.ts +12 -0
- package/common/resizable-settings.d.ts +6 -5
- package/common/single-popup.service.d.ts +7 -4
- package/common/size-options.d.ts +2 -1
- package/data/change-event-args.interface.d.ts +7 -7
- package/data/data-item.interface.d.ts +6 -6
- package/data/data.collection.d.ts +1 -1
- package/data/grid-item.interface.d.ts +1 -1
- package/data/group-footer-item.interface.d.ts +6 -6
- package/data/group-item.interface.d.ts +5 -5
- package/databinding.directive.d.ts +20 -10
- package/directives.d.ts +10 -1
- package/dragdrop/column-reorder-config.d.ts +2 -2
- package/dragdrop/column-reorder-event.d.ts +4 -6
- package/editing/add-command-tool.directive.d.ts +5 -7
- package/editing/add-command.directive.d.ts +3 -8
- package/editing/add-event-args.interface.d.ts +1 -1
- package/editing/cancel-command-tool.directive.d.ts +5 -5
- package/editing/cancel-command.directive.d.ts +6 -5
- package/editing/cancel-event-args.interface.d.ts +7 -1
- package/editing/cell-close-event.d.ts +9 -6
- package/editing/edit-command-tool.directive.d.ts +10 -9
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit-event-args.interface.d.ts +3 -3
- package/editing/edit-row-options.interface.d.ts +10 -4
- package/editing/edit-template.directive.d.ts +17 -9
- package/editing/form/models.d.ts +55 -48
- package/editing/remove-command-tool.directive.d.ts +10 -9
- package/editing/remove-command.directive.d.ts +4 -5
- package/editing/remove-event-args.interface.d.ts +2 -1
- package/editing/save-command-tool.directive.d.ts +7 -6
- package/editing/save-command.directive.d.ts +5 -5
- package/editing/save-event-args.interface.d.ts +2 -1
- package/editing-directives/create-form-group-args.interface.d.ts +1 -1
- package/editing-directives/edit-service.interface.d.ts +13 -6
- package/editing-directives/external-editing.directive.d.ts +11 -4
- package/editing-directives/in-cell-editing.directive.d.ts +9 -3
- package/editing-directives/reactive-editing.directive.d.ts +9 -3
- package/editing-directives/template-editing.directive.d.ts +9 -3
- package/esm2022/aggregates/status-bar-template.directive.mjs +6 -4
- package/esm2022/column-menu/column-locked-change-event.mjs +1 -1
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +11 -2
- package/esm2022/column-menu/column-menu-autosize.component.mjs +14 -6
- package/esm2022/column-menu/column-menu-chooser.component.mjs +13 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +18 -5
- package/esm2022/column-menu/column-menu-item-base.mjs +2 -2
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +4 -4
- package/esm2022/column-menu/column-menu-item.component.mjs +14 -7
- package/esm2022/column-menu/column-menu-item.directive.mjs +29 -1
- package/esm2022/column-menu/column-menu-lock.component.mjs +11 -3
- package/esm2022/column-menu/column-menu-position.component.mjs +16 -8
- package/esm2022/column-menu/column-menu-sort.component.mjs +11 -9
- package/esm2022/column-menu/column-menu-stick.component.mjs +13 -5
- package/esm2022/column-menu/column-menu-template.directive.mjs +5 -7
- package/esm2022/column-menu/column-menu.component.mjs +17 -7
- package/esm2022/column-menu/column-menu.service.mjs +8 -9
- package/esm2022/columns/checkbox-column.component.mjs +7 -5
- package/esm2022/columns/column-base.mjs +38 -52
- package/esm2022/columns/column-group.component.mjs +3 -2
- package/esm2022/columns/column.component.mjs +17 -12
- package/esm2022/columns/command-column.component.mjs +6 -7
- package/esm2022/columns/reorder-column.component.mjs +10 -2
- package/esm2022/columns/span-column.component.mjs +11 -11
- package/esm2022/common/adaptiveness.service.mjs +2 -2
- package/esm2022/common/clipboard.directive.mjs +12 -8
- package/esm2022/common/preventable-event.mjs +3 -7
- package/esm2022/common/resizable-settings.mjs +2 -1
- package/esm2022/common/single-popup.service.mjs +7 -4
- package/esm2022/databinding.directive.mjs +20 -10
- package/esm2022/directives.mjs +10 -1
- package/esm2022/dragdrop/column-reorder-event.mjs +4 -6
- package/esm2022/editing/add-command-tool.directive.mjs +5 -7
- package/esm2022/editing/add-command.directive.mjs +3 -8
- package/esm2022/editing/cancel-command-tool.directive.mjs +5 -5
- package/esm2022/editing/cancel-command.directive.mjs +6 -5
- package/esm2022/editing/cell-close-event.mjs +7 -4
- package/esm2022/editing/edit-command-tool.directive.mjs +10 -9
- package/esm2022/editing/edit-command.directive.mjs +1 -1
- package/esm2022/editing/edit-template.directive.mjs +17 -9
- package/esm2022/editing/remove-command-tool.directive.mjs +10 -9
- package/esm2022/editing/remove-command.directive.mjs +4 -5
- package/esm2022/editing/save-command-tool.directive.mjs +7 -6
- package/esm2022/editing/save-command.directive.mjs +5 -5
- package/esm2022/editing-directives/external-editing.directive.mjs +11 -4
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +9 -3
- package/esm2022/editing-directives/reactive-editing.directive.mjs +9 -3
- package/esm2022/editing-directives/template-editing.directive.mjs +9 -3
- package/esm2022/excel/excel-command-tool.directive.mjs +10 -13
- package/esm2022/excel/excel-command.directive.mjs +7 -11
- package/esm2022/excel/excel-export-event.mjs +4 -1
- package/esm2022/excel/excel.component.mjs +24 -25
- package/esm2022/excel/excel.module.mjs +4 -7
- package/esm2022/filtering/boolean-filter.component.mjs +3 -3
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +1 -2
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +5 -2
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +10 -7
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +4 -2
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +10 -9
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +7 -5
- package/esm2022/filtering/date-filter.component.mjs +17 -19
- package/esm2022/filtering/filter.service.mjs +4 -4
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +3 -3
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +5 -3
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +9 -7
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +8 -8
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +10 -6
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +10 -5
- package/esm2022/filtering/numeric-filter.component.mjs +13 -13
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +74 -1
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/string-filter.component.mjs +5 -4
- package/esm2022/grid.component.mjs +165 -173
- package/esm2022/grid.module.mjs +3 -2
- package/esm2022/grouping/group-footer-template.directive.mjs +5 -6
- package/esm2022/grouping/group-header-column-template.directive.mjs +5 -5
- package/esm2022/grouping/group-header-template.directive.mjs +5 -6
- package/esm2022/grouping/group-scroll-binding.directive.mjs +2 -0
- package/esm2022/localization/custom-messages.component.mjs +12 -2
- package/esm2022/localization/messages.mjs +154 -165
- package/esm2022/navigation/focus-group.mjs +2 -2
- package/esm2022/navigation/focusable.directive.mjs +5 -3
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command-tool.directive.mjs +8 -11
- package/esm2022/pdf/pdf-command.directive.mjs +5 -9
- package/esm2022/pdf/pdf-export-event.mjs +1 -1
- package/esm2022/pdf/pdf-margin.component.mjs +16 -6
- package/esm2022/pdf/pdf-template.directive.mjs +5 -5
- package/esm2022/pdf/pdf.component.mjs +15 -5
- package/esm2022/pdf/pdf.module.mjs +3 -6
- package/esm2022/rendering/cell-loading.template.directive.mjs +4 -7
- package/esm2022/rendering/cell-template.directive.mjs +7 -8
- package/esm2022/rendering/common/spacer.component.mjs +14 -3
- package/esm2022/rendering/details/detail-collapse-event.mjs +8 -3
- package/esm2022/rendering/details/detail-expand-event.mjs +8 -3
- package/esm2022/rendering/details/detail-template.directive.mjs +3 -2
- package/esm2022/rendering/details-expand.directive.mjs +18 -8
- package/esm2022/rendering/footer/footer-template.directive.mjs +7 -7
- package/esm2022/rendering/groups-expand.directive.mjs +15 -5
- package/esm2022/rendering/header/header-template.directive.mjs +11 -11
- package/esm2022/rendering/loading-template.directive.mjs +14 -3
- package/esm2022/rendering/no-records-template.directive.mjs +3 -5
- package/esm2022/rendering/table-body.component.mjs +3 -1
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +10 -2
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -17
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +3 -3
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +6 -5
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +5 -5
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +5 -3
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +4 -4
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +5 -6
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +3 -5
- package/esm2022/selection/selectall-checkbox.directive.mjs +2 -2
- package/esm2022/selection/selection-checkbox.directive.mjs +9 -8
- package/esm2022/selection/selection-default.mjs +9 -8
- package/esm2022/selection/selection.directive.mjs +10 -1
- package/esm2022/state-management/grid-state.models.mjs +3 -3
- package/esm2022/state-management/redo-command-tool.mjs +17 -9
- package/esm2022/state-management/undo-command-tool.mjs +17 -9
- package/esm2022/state-management/undo-redo.directive.mjs +17 -6
- package/excel/excel-command-tool.directive.d.ts +10 -13
- package/excel/excel-command.directive.d.ts +7 -11
- package/excel/excel-export-event.d.ts +4 -1
- package/excel/excel.component.d.ts +24 -25
- package/excel/excel.module.d.ts +4 -7
- package/fesm2022/progress-kendo-angular-grid.mjs +1945 -1025
- package/filtering/boolean-filter.component.d.ts +3 -3
- package/filtering/cell/boolean-filter-cell.component.d.ts +1 -2
- package/filtering/cell/date-filter-cell.component.d.ts +5 -2
- package/filtering/cell/filter-cell-operators.component.d.ts +10 -7
- package/filtering/cell/filter-cell-template.directive.d.ts +4 -2
- package/filtering/cell/numeric-filter-cell.component.d.ts +10 -9
- package/filtering/cell/string-filter-cell.component.d.ts +7 -5
- package/filtering/date-filter.component.d.ts +17 -19
- package/filtering/filter.service.d.ts +4 -4
- package/filtering/filterable.d.ts +5 -5
- package/filtering/menu/boolean-filter-menu.component.d.ts +3 -3
- package/filtering/menu/date-filter-menu.component.d.ts +5 -3
- package/filtering/menu/filter-menu-template.directive.d.ts +9 -7
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +8 -8
- package/filtering/menu/numeric-filter-menu.component.d.ts +10 -6
- package/filtering/menu/string-filter-menu.component.d.ts +10 -5
- package/filtering/numeric-filter.component.d.ts +13 -13
- package/filtering/operators/after-eq-filter-operator.component.d.ts +26 -0
- package/filtering/operators/after-filter-operator.component.d.ts +26 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +26 -0
- package/filtering/operators/before-filter-operator.component.d.ts +26 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +27 -1
- package/filtering/operators/ends-with-filter-operator.component.d.ts +26 -1
- package/filtering/operators/eq-filter-operator.component.d.ts +74 -1
- package/filtering/operators/gt-filter-operator.component.d.ts +26 -0
- package/filtering/operators/gte-filter-operator.component.d.ts +26 -0
- package/filtering/operators/is-empty-filter-operator.component.d.ts +26 -1
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +26 -1
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +73 -1
- package/filtering/operators/isnull-filter-operator.component.d.ts +73 -1
- package/filtering/operators/lt-filter-operator.component.d.ts +26 -1
- package/filtering/operators/lte-filter-operator.component.d.ts +26 -1
- package/filtering/operators/neq-filter-operator.component.d.ts +73 -1
- package/filtering/operators/not-contains-filter-operator.component.d.ts +26 -1
- package/filtering/operators/starts-with-filter-operator.component.d.ts +26 -1
- package/filtering/string-filter.component.d.ts +5 -4
- package/grid.component.d.ts +159 -173
- package/grid.module.d.ts +3 -2
- package/grouping/group-footer-template.directive.d.ts +5 -6
- package/grouping/group-header-column-template.directive.d.ts +5 -5
- package/grouping/group-header-template.directive.d.ts +5 -6
- package/grouping/group-key.interface.d.ts +7 -7
- package/grouping/group-rows-args.interface.d.ts +5 -5
- package/grouping/group-scroll-binding.directive.d.ts +2 -0
- package/grouping/group-settings.d.ts +7 -7
- package/grouping/virtual-group-result.interface.d.ts +3 -3
- package/localization/custom-messages.component.d.ts +12 -2
- package/localization/messages.d.ts +154 -165
- package/navigation/focus-group.d.ts +2 -2
- package/navigation/focusable-element.interface.d.ts +8 -9
- package/navigation/focusable.directive.d.ts +5 -3
- package/navigation/navigable-settings.d.ts +10 -5
- package/navigation/navigation-cell.interface.d.ts +8 -8
- package/navigation/navigation-row.interface.d.ts +6 -7
- package/package.json +20 -20
- package/pdf/pdf-command-tool.directive.d.ts +8 -11
- package/pdf/pdf-command.directive.d.ts +5 -9
- package/pdf/pdf-export-event.d.ts +1 -1
- package/pdf/pdf-margin.component.d.ts +16 -6
- package/pdf/pdf-margin.interface.d.ts +2 -2
- package/pdf/pdf-template.directive.d.ts +5 -5
- package/pdf/pdf.component.d.ts +15 -5
- package/pdf/pdf.module.d.ts +3 -6
- package/rendering/cell-loading.template.directive.d.ts +4 -7
- package/rendering/cell-template.directive.d.ts +7 -8
- package/rendering/common/row-args.d.ts +2 -0
- package/rendering/common/row-class.d.ts +20 -21
- package/rendering/common/spacer.component.d.ts +14 -3
- package/rendering/details/detail-collapse-event.d.ts +8 -3
- package/rendering/details/detail-expand-event.d.ts +8 -3
- package/rendering/details/detail-template.directive.d.ts +8 -7
- package/rendering/details-expand.directive.d.ts +18 -8
- package/rendering/footer/footer-template.directive.d.ts +7 -7
- package/rendering/groups-expand.directive.d.ts +15 -5
- package/rendering/header/header-template.directive.d.ts +11 -11
- package/rendering/loading-template.directive.d.ts +14 -3
- package/rendering/no-records-template.directive.d.ts +3 -5
- package/rendering/toolbar/toolbar-focusable.directive.d.ts +10 -2
- package/rendering/toolbar/toolbar-position.d.ts +5 -5
- package/rendering/toolbar/toolbar-template.directive.d.ts +3 -3
- package/rendering/toolbar/tools/column-chooser-tool.directive.d.ts +6 -5
- package/rendering/toolbar/tools/filter-command-tool.directive.d.ts +5 -5
- package/rendering/toolbar/tools/group-command-tool.directive.d.ts +5 -3
- package/rendering/toolbar/tools/sort-command-tool.directive.d.ts +4 -4
- package/row-reordering/drag-handle-template.directive.d.ts +5 -6
- package/row-reordering/drag-hint-template.directive.d.ts +3 -5
- package/row-reordering/types.d.ts +10 -10
- package/schematics/ngAdd/index.js +4 -4
- package/scrolling/content-scroll-event.d.ts +11 -11
- package/scrolling/scroll-bottom-event.d.ts +2 -2
- package/scrolling/scroll-request.service.d.ts +6 -6
- package/scrolling/scrollmode.d.ts +3 -3
- package/selection/selectall-checkbox.directive.d.ts +2 -2
- package/selection/selection-checkbox.directive.d.ts +9 -8
- package/selection/selection-default.d.ts +9 -8
- package/selection/selection.directive.d.ts +10 -1
- package/selection/types.d.ts +41 -35
- package/state-management/grid-state.models.d.ts +16 -7
- package/state-management/redo-command-tool.d.ts +14 -6
- package/state-management/undo-command-tool.d.ts +14 -6
- package/state-management/undo-redo.directive.d.ts +17 -6
|
@@ -14,9 +14,8 @@ import * as i1 from "../common/provider.service";
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the column-menu item for editing column filters in the Grid. [See example](slug:columnmenu_grid#toc-filter-item).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that
|
|
19
|
-
* the template to the service input of the `kendo-grid-columnmenu-filter` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
17
|
+
* Place this component inside a [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
18
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}) that the template passes to the `service` input of the `kendo-grid-columnmenu-filter` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
20
19
|
*
|
|
21
20
|
* @example
|
|
22
21
|
* ```html
|
|
@@ -27,16 +26,25 @@ import * as i1 from "../common/provider.service";
|
|
|
27
26
|
* </ng-template>
|
|
28
27
|
* </kendo-grid>
|
|
29
28
|
* ```
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <kendo-grid-column field="ProductName">
|
|
32
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
33
|
+
* <kendo-grid-columnmenu-filter [service]="service">
|
|
34
|
+
* </kendo-grid-columnmenu-filter>
|
|
35
|
+
* </ng-template>
|
|
36
|
+
* </kendo-grid-column>
|
|
37
|
+
* ```
|
|
30
38
|
*/
|
|
31
39
|
export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
32
40
|
ctx;
|
|
33
41
|
hostElement;
|
|
34
42
|
/**
|
|
35
|
-
*
|
|
43
|
+
* Emits when the content expands.
|
|
36
44
|
*/
|
|
37
45
|
expand = new EventEmitter();
|
|
38
46
|
/**
|
|
39
|
-
*
|
|
47
|
+
* Emits when the content collapses.
|
|
40
48
|
*/
|
|
41
49
|
collapse = new EventEmitter();
|
|
42
50
|
/**
|
|
@@ -45,13 +53,18 @@ export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
45
53
|
*/
|
|
46
54
|
expanded = false;
|
|
47
55
|
/**
|
|
56
|
+
* Specifies if this is the last item in the menu.
|
|
48
57
|
* @hidden
|
|
49
58
|
*/
|
|
50
59
|
isLast = false;
|
|
51
60
|
/**
|
|
61
|
+
* Sets the CSS class for the actions container.
|
|
52
62
|
* @hidden
|
|
53
63
|
*/
|
|
54
64
|
actionsClass = 'k-actions k-actions-stretched k-actions-horizontal';
|
|
65
|
+
/**
|
|
66
|
+
* Defines the SVG icon for the filter.
|
|
67
|
+
*/
|
|
55
68
|
filterIcon = filterIcon;
|
|
56
69
|
constructor(ctx, hostElement) {
|
|
57
70
|
super();
|
|
@@ -11,8 +11,8 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*/
|
|
12
12
|
export class ColumnMenuItemBase {
|
|
13
13
|
/**
|
|
14
|
-
* Represents the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) class.
|
|
15
|
-
*
|
|
14
|
+
* Represents the [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}) class.
|
|
15
|
+
* This input is required.
|
|
16
16
|
*/
|
|
17
17
|
service;
|
|
18
18
|
hostClass = true;
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents the content template of the
|
|
9
9
|
* [`ColumnMenuItemComponent`]({% slug api_grid_columnmenuitemcomponent %}) component.
|
|
10
|
-
*
|
|
10
|
+
* Use this directive to specify the content of a column menu item.
|
|
11
11
|
* To define the content template, nest an `<ng-template>` tag with the
|
|
12
12
|
* `kendoGridColumnMenuItemContentTemplate` directive inside a `<kendo-grid-columnmenu-item>`.
|
|
13
13
|
*
|
|
@@ -15,13 +15,13 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* ```html
|
|
16
16
|
* <kendo-grid [data]="data" [columnMenu]="true" ...>
|
|
17
17
|
* <ng-template kendoGridColumnMenuTemplate>
|
|
18
|
-
* <kendo-grid-columnmenu-item text="
|
|
18
|
+
* <kendo-grid-columnmenu-item text="Text" [expanded]="true">
|
|
19
19
|
* <ng-template kendoGridColumnMenuItemContentTemplate>
|
|
20
|
-
*
|
|
20
|
+
* Content
|
|
21
21
|
* </ng-template>
|
|
22
22
|
* </kendo-grid-columnmenu-item>
|
|
23
23
|
* </ng-template>
|
|
24
|
-
* <kendo-grid-column field="
|
|
24
|
+
* <kendo-grid-column field="ID"></kendo-grid-column>
|
|
25
25
|
* ...
|
|
26
26
|
* </kendo-grid>
|
|
27
27
|
* ```
|
|
@@ -21,8 +21,8 @@ import * as i0 from "@angular/core";
|
|
|
21
21
|
import * as i1 from "../common/provider.service";
|
|
22
22
|
import * as i2 from "../common/adaptiveness.service";
|
|
23
23
|
/**
|
|
24
|
-
* Represents an item that can
|
|
25
|
-
* [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
24
|
+
* Represents an item that you can place inside a
|
|
25
|
+
* [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```html
|
|
@@ -32,6 +32,14 @@ import * as i2 from "../common/adaptiveness.service";
|
|
|
32
32
|
* </ng-template>
|
|
33
33
|
* </kendo-grid>
|
|
34
34
|
* ```
|
|
35
|
+
* @example
|
|
36
|
+
* ```html
|
|
37
|
+
* <kendo-grid-column field="ProductName">
|
|
38
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
39
|
+
* kendo-grid-columnmenu-item text="Fit column"></kendo-grid-columnmenu-item>
|
|
40
|
+
* </ng-template>
|
|
41
|
+
* </kendo-grid-column>
|
|
42
|
+
* ```
|
|
35
43
|
*/
|
|
36
44
|
export class ColumnMenuItemComponent {
|
|
37
45
|
ngZone;
|
|
@@ -51,20 +59,19 @@ export class ColumnMenuItemComponent {
|
|
|
51
59
|
*/
|
|
52
60
|
itemClick = new EventEmitter();
|
|
53
61
|
/**
|
|
54
|
-
* Fires when the content
|
|
62
|
+
* Fires when the content expands.
|
|
55
63
|
*/
|
|
56
64
|
expand = new EventEmitter();
|
|
57
65
|
/**
|
|
58
|
-
* Fires when the content
|
|
66
|
+
* Fires when the content collapses.
|
|
59
67
|
*/
|
|
60
68
|
collapse = new EventEmitter();
|
|
61
69
|
/**
|
|
62
|
-
* Specifies the name of the
|
|
63
|
-
* that will be rendered within the item.
|
|
70
|
+
* Specifies the name of the font icon to render within the item.
|
|
64
71
|
*/
|
|
65
72
|
icon;
|
|
66
73
|
/**
|
|
67
|
-
*
|
|
74
|
+
* Specifies the SVG icon to render within the item.
|
|
68
75
|
*/
|
|
69
76
|
svgIcon;
|
|
70
77
|
/**
|
|
@@ -11,6 +11,28 @@ import { ColumnMenuFilterComponent } from './column-menu-filter.component';
|
|
|
11
11
|
import { ContextService } from '../common/provider.service';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
import * as i1 from "../common/provider.service";
|
|
14
|
+
/**
|
|
15
|
+
* Represents a directive that manages keyboard navigation for a column menu item. [See example](slug:columnmenu_grid#customizing-the-content).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html
|
|
19
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service" let-column="column">
|
|
20
|
+
* <kendo-grid-columnmenu-sort #sortItem [kendoGridColumnMenuItem]="sortItem" [service]="service"></kendo-grid-columnmenu-sort>
|
|
21
|
+
* </ng-template>
|
|
22
|
+
* ```
|
|
23
|
+
* @remarks
|
|
24
|
+
* Applied to:
|
|
25
|
+
* {@link ColumnMenuChooserComponent},
|
|
26
|
+
* {@link ColumnMenuFilterComponent},
|
|
27
|
+
* {@link ColumnMenuSortComponent},
|
|
28
|
+
* {@link ColumnMenuLockComponent},
|
|
29
|
+
* {@link ColumnMenuStickyComponent},
|
|
30
|
+
* {@link ColumnMenuComponent},
|
|
31
|
+
* {@link ColumnMenuItemComponent},
|
|
32
|
+
* {@link ColumnMenuPositionComponent},
|
|
33
|
+
* {@link ColumnMenuAutoSizeAllColumnsComponent},
|
|
34
|
+
* {@link ColumnMenuAutoSizeColumnComponent}.
|
|
35
|
+
*/
|
|
14
36
|
export class ColumnMenuItemDirective {
|
|
15
37
|
hostElement;
|
|
16
38
|
renderer;
|
|
@@ -18,10 +40,16 @@ export class ColumnMenuItemDirective {
|
|
|
18
40
|
cdr;
|
|
19
41
|
ctx;
|
|
20
42
|
/**
|
|
21
|
-
*
|
|
43
|
+
* Reference to the Grid column menu item. Required when you want to include the item in the built-in keyboard navigation.
|
|
22
44
|
*/
|
|
23
45
|
menuItemComponent;
|
|
46
|
+
/**
|
|
47
|
+
* Holds the first focusable element.
|
|
48
|
+
*/
|
|
24
49
|
firstFocusableElement;
|
|
50
|
+
/**
|
|
51
|
+
* Holds the last focusable element.
|
|
52
|
+
*/
|
|
25
53
|
lastFocusableElement;
|
|
26
54
|
/**
|
|
27
55
|
* @hidden
|
|
@@ -14,9 +14,8 @@ import * as i2 from "../common/column-info.service";
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the column-menu item for locking and unlocking columns in the Grid. [See example](slug:columnmenu_grid#toc-lock-and-unlock-items).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that
|
|
19
|
-
* the template to the service input of the `kendo-grid-columnmenu-lock` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
17
|
+
* Place this component inside a [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
18
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}) that the template passes to the `service` input of the `kendo-grid-columnmenu-lock` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
20
19
|
*
|
|
21
20
|
* @example
|
|
22
21
|
* ```html
|
|
@@ -27,6 +26,15 @@ import * as i2 from "../common/column-info.service";
|
|
|
27
26
|
* </ng-template>
|
|
28
27
|
* </kendo-grid>
|
|
29
28
|
* ```
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <kendo-grid-column field="ProductName">
|
|
32
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
33
|
+
* <kendo-grid-columnmenu-lock [service]="service">
|
|
34
|
+
* </kendo-grid-columnmenu-lock>
|
|
35
|
+
* </ng-template>
|
|
36
|
+
* </kendo-grid-column>
|
|
37
|
+
* ```
|
|
30
38
|
*/
|
|
31
39
|
export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
32
40
|
ctx;
|
|
@@ -14,11 +14,10 @@ import { ColumnMenuItemComponent } from './column-menu-item.component';
|
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
import * as i1 from "../common/provider.service";
|
|
16
16
|
/**
|
|
17
|
-
* Represents the column-menu item
|
|
17
|
+
* Represents the column-menu item that combines lock and sticky column functionalities.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that
|
|
21
|
-
* the template to the service input of the `kendo-grid-columnmenu-position` component. [See example](slug:columnmenu_grid#toc-set-column-position-item).
|
|
19
|
+
* Place this component inside a [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
20
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}) that the template passes to the `service` input of the `kendo-grid-columnmenu-position` component. [See example](slug:columnmenu_grid#toc-set-column-position-item).
|
|
22
21
|
*
|
|
23
22
|
* @example
|
|
24
23
|
* ```html
|
|
@@ -29,16 +28,25 @@ import * as i1 from "../common/provider.service";
|
|
|
29
28
|
* </ng-template>
|
|
30
29
|
* </kendo-grid>
|
|
31
30
|
* ```
|
|
31
|
+
* @example
|
|
32
|
+
* ```html
|
|
33
|
+
* <kendo-grid-column field="ProductName">
|
|
34
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
35
|
+
* <kendo-grid-columnmenu-position [service]="service" [showLock]="true" [showStick]="true">
|
|
36
|
+
* </kendo-grid-columnmenu-position>
|
|
37
|
+
* </ng-template>
|
|
38
|
+
* </kendo-grid-column>
|
|
39
|
+
* ```
|
|
32
40
|
*/
|
|
33
41
|
export class ColumnMenuPositionComponent extends ColumnMenuItemBase {
|
|
34
42
|
ctx;
|
|
35
43
|
hostElement;
|
|
36
44
|
/**
|
|
37
|
-
*
|
|
45
|
+
* Emits when the content expands.
|
|
38
46
|
*/
|
|
39
47
|
expand = new EventEmitter();
|
|
40
48
|
/**
|
|
41
|
-
*
|
|
49
|
+
* Emits when the content collapses.
|
|
42
50
|
*/
|
|
43
51
|
collapse = new EventEmitter();
|
|
44
52
|
/**
|
|
@@ -47,11 +55,11 @@ export class ColumnMenuPositionComponent extends ColumnMenuItemBase {
|
|
|
47
55
|
*/
|
|
48
56
|
expanded = false;
|
|
49
57
|
/**
|
|
50
|
-
* Specifies if the lock column item is
|
|
58
|
+
* Specifies if the lock column item is shown.
|
|
51
59
|
*/
|
|
52
60
|
showLock;
|
|
53
61
|
/**
|
|
54
|
-
* Specifies if the stick column item is
|
|
62
|
+
* Specifies if the stick column item is shown.
|
|
55
63
|
*/
|
|
56
64
|
showStick;
|
|
57
65
|
/**
|
|
@@ -14,24 +14,26 @@ import * as i1 from "../common/provider.service";
|
|
|
14
14
|
import * as i2 from "../common/sort.service";
|
|
15
15
|
/**
|
|
16
16
|
* Represents the column-menu item for sorting Grid columns.
|
|
17
|
-
* [See example](slug:columnmenu_grid#toc-sort-item).
|
|
18
17
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* the template to the service input of the `kendo-grid-columnmenu-sort` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
22
|
-
*
|
|
23
|
-
* You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
24
|
-
* the template to the service input of the `kendo-grid-columnmenu-sort` component.
|
|
18
|
+
* Provides sorting options (ascending and descending) for a specific column in the Grid.
|
|
19
|
+
* Place this component inside a [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive and pass the [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}) to the `service` input of the `kendo-grid-columnmenu-sort` component.
|
|
25
20
|
*
|
|
26
21
|
* @example
|
|
27
22
|
* ```html
|
|
28
23
|
* <kendo-grid [kendoGridBinding]="data" [sortable]="true" [columnMenu]="true">
|
|
29
24
|
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
30
|
-
* <kendo-grid-columnmenu-sort [service]="service">
|
|
31
|
-
* </kendo-grid-columnmenu-sort>
|
|
25
|
+
* <kendo-grid-columnmenu-sort [service]="service"></kendo-grid-columnmenu-sort>
|
|
32
26
|
* </ng-template>
|
|
33
27
|
* </kendo-grid>
|
|
34
28
|
* ```
|
|
29
|
+
* * @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <kendo-grid-column field="ProductName">
|
|
32
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
33
|
+
* <kendo-grid-columnmenu-sort [service]="service"></kendo-grid-columnmenu-sort>
|
|
34
|
+
* </ng-template>
|
|
35
|
+
* </kendo-grid-column>
|
|
36
|
+
* ```
|
|
35
37
|
*/
|
|
36
38
|
export class ColumnMenuSortComponent extends ColumnMenuItemBase {
|
|
37
39
|
ctx;
|
|
@@ -12,12 +12,12 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
import * as i1 from "../common/provider.service";
|
|
13
13
|
import * as i2 from "../common/column-info.service";
|
|
14
14
|
/**
|
|
15
|
-
* Represents
|
|
15
|
+
* Represents a column-menu item for sticking or unsticking columns in the Grid.
|
|
16
16
|
* [See example](slug:columnmenu_grid#toc-stick-and-unstick-items).
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
* To register the component as a
|
|
20
|
-
*
|
|
18
|
+
* Place this component inside a [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
19
|
+
* To register the component as a column menu item, set the [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}) from the template to the `service` input of the `kendo-grid-columnmenu-stick` component.
|
|
20
|
+
* [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```html
|
|
@@ -27,7 +27,15 @@ import * as i2 from "../common/column-info.service";
|
|
|
27
27
|
* </kendo-grid-columnmenu-stick>
|
|
28
28
|
* </ng-template>
|
|
29
29
|
* </kendo-grid>
|
|
30
|
-
*
|
|
30
|
+
* ```
|
|
31
|
+
* @example
|
|
32
|
+
* ```html
|
|
33
|
+
* <kendo-grid-column field="ProductName">
|
|
34
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
35
|
+
* <kendo-grid-columnmenu-stick [service]="service">
|
|
36
|
+
* </kendo-grid-columnmenu-stick>
|
|
37
|
+
* </ng-template>
|
|
38
|
+
* </kendo-grid-column>
|
|
31
39
|
* ```
|
|
32
40
|
*/
|
|
33
41
|
export class ColumnMenuStickComponent extends ColumnMenuItemBase {
|
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* To define the content template, nest an `<ng-template>` tag with the
|
|
11
|
-
* `kendoGridColumnMenuTemplate` directive inside the `<kendo-grid>` or the `<kendo-grid-column>` component.
|
|
8
|
+
* Defines a template for the column menu in the Grid. Use this directive to customize the column menu content for all columns or for specific columns.
|
|
9
|
+
* Place an `<ng-template>` tag with the `kendoGridColumnMenuTemplate` directive inside the `<kendo-grid>` or `<kendo-grid-column>` component to set the template.
|
|
12
10
|
*
|
|
13
|
-
* The template context
|
|
14
|
-
* - `service`—
|
|
15
|
-
* - `column`—
|
|
11
|
+
* The template context provides these fields:
|
|
12
|
+
* - `service`—The [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}).
|
|
13
|
+
* - `column`—The Grid column.
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
18
16
|
* ```html
|
|
@@ -44,15 +44,25 @@ let id = 0;
|
|
|
44
44
|
const getId = (gridId) => `${gridId}-column-menu-${id++}`;
|
|
45
45
|
/**
|
|
46
46
|
* Represents the [column menu](slug:columnmenu_grid#toc-customizing-the-position) component.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
47
49
|
* ```html
|
|
48
50
|
* <kendo-grid ...>
|
|
49
51
|
* <kendo-grid-column field="ProductName" [columnMenu]="false">
|
|
50
52
|
* <ng-template kendoGridHeaderTemplate let-column>
|
|
51
|
-
*
|
|
53
|
+
* <kendo-grid-column-menu [column]="column"></kendo-grid-column-menu>
|
|
52
54
|
* </ng-template>
|
|
53
55
|
* </kendo-grid-column>
|
|
54
56
|
* </kendo-grid>
|
|
55
57
|
* ```
|
|
58
|
+
* @example
|
|
59
|
+
* ```html
|
|
60
|
+
* <kendo-grid-column field="ProductName">
|
|
61
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
62
|
+
* <kendo-grid-column-menu [column]="column"></kendo-grid-column-menu>
|
|
63
|
+
* </ng-template>
|
|
64
|
+
* </kendo-grid-column>
|
|
65
|
+
* ```
|
|
56
66
|
*/
|
|
57
67
|
export class ColumnMenuComponent {
|
|
58
68
|
navigationService;
|
|
@@ -69,21 +79,21 @@ export class ColumnMenuComponent {
|
|
|
69
79
|
*/
|
|
70
80
|
standalone = true;
|
|
71
81
|
/**
|
|
72
|
-
* The Grid column instance
|
|
82
|
+
* The Grid column instance controlled by the menu.
|
|
73
83
|
*/
|
|
74
84
|
column;
|
|
75
85
|
/**
|
|
76
|
-
* The settings for the
|
|
86
|
+
* The settings for the column menu.
|
|
77
87
|
*/
|
|
78
88
|
settings = {};
|
|
79
89
|
/**
|
|
80
|
-
* The descriptors
|
|
81
|
-
* Typically bound to
|
|
90
|
+
* The sort descriptors for the Grid data.
|
|
91
|
+
* Typically bound to [`GridComponent.sort`]({% slug api_grid_gridcomponent %}#toc-sort).
|
|
82
92
|
*/
|
|
83
93
|
sort;
|
|
84
94
|
/**
|
|
85
|
-
* The descriptor
|
|
86
|
-
* Typically bound to
|
|
95
|
+
* The filter descriptor for the Grid data.
|
|
96
|
+
* Typically bound to [`GridComponent.filter`]({% slug api_grid_gridcomponent %}#toc-filter).
|
|
87
97
|
*/
|
|
88
98
|
filter;
|
|
89
99
|
/**
|
|
@@ -7,20 +7,19 @@ import { Injectable, EventEmitter } from '@angular/core';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
import * as i1 from "./../filtering/menu/menu-tabbing.service";
|
|
9
9
|
/**
|
|
10
|
-
* Represents the service
|
|
11
|
-
*
|
|
10
|
+
* Represents the service passed to the [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
11
|
+
*
|
|
12
|
+
* Use this service to interact with the column menu from a custom template.
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
* ```html
|
|
15
16
|
* <kendo-grid [data]="data" [columnMenu]="true">
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
17
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
18
|
+
* <span class="k-icon k-font-icon k-i-x" (click)="service.close()"></span>
|
|
19
|
+
* <kendo-grid-columnmenu-sort [service]="service"></kendo-grid-columnmenu-sort>
|
|
20
|
+
* </ng-template>
|
|
21
|
+
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
22
22
|
* </kendo-grid>
|
|
23
|
-
*
|
|
24
23
|
* ```
|
|
25
24
|
*/
|
|
26
25
|
export class ColumnMenuService {
|
|
@@ -16,11 +16,13 @@ import * as i4 from "../common/id.service";
|
|
|
16
16
|
/**
|
|
17
17
|
* Represents the checkbox column for selecting rows in the Grid. [See example](slug:grid_row_selection#toc-select-all-checkbox).
|
|
18
18
|
*
|
|
19
|
+
* Use this column to add checkboxes for row selection.
|
|
20
|
+
*
|
|
19
21
|
* @example
|
|
20
22
|
* ```html
|
|
21
23
|
* <kendo-grid [selectable]="{enabled: true, checkboxOnly: true}">
|
|
22
|
-
* <kendo-grid-checkbox-column title="
|
|
23
|
-
* <kendo-grid-column field="
|
|
24
|
+
* <kendo-grid-checkbox-column title="Select"></kendo-grid-checkbox-column>
|
|
25
|
+
* <kendo-grid-column field="ID"></kendo-grid-column>
|
|
24
26
|
* </kendo-grid>
|
|
25
27
|
* ```
|
|
26
28
|
*/
|
|
@@ -29,11 +31,11 @@ export class CheckboxColumnComponent extends ColumnBase {
|
|
|
29
31
|
cellSelectionService;
|
|
30
32
|
parent;
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
34
|
+
* Shows a select-all `kendoGridSelectAllCheckbox` checkbox in the header.
|
|
33
35
|
*/
|
|
34
36
|
showSelectAll;
|
|
35
37
|
/**
|
|
36
|
-
*
|
|
38
|
+
* Shows checkboxes for rows marked as non-selectable. By default, these checkboxes are visible and disabled.
|
|
37
39
|
*/
|
|
38
40
|
showDisabledCheckbox = true;
|
|
39
41
|
/*
|
|
@@ -57,7 +59,7 @@ export class CheckboxColumnComponent extends ColumnBase {
|
|
|
57
59
|
return !this.selectionService.nonSelectableRows.has(rowIdx) && !this.cellSelectionService.nonSelectableRows.has(rowIdx);
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
60
|
-
* Defines a function
|
|
62
|
+
* Defines a function to determine the rowspan of each column cell.
|
|
61
63
|
*/
|
|
62
64
|
set cellRowspan(cellRowspan) {
|
|
63
65
|
super.cellRowspan = cellRowspan;
|