@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
40 lines (39 loc) • 1.89 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { ChangeDetectorRef, NgZone } from '@angular/core';
import { EditService } from './edit.service';
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
import { SelectionService } from '../selection/selection.service';
import { ContextService } from '../common/provider.service';
import { ToolbarEditingToolBase } from './toolbar-editing-tool-base.directive';
import * as i0 from "@angular/core";
/**
* Represents the `save` command in the Grid. Apply this directive to any `kendo-toolbar-button`
* element inside a ToolbarComponent used in the Grid.
*
* When you click the toolbar button with this directive, the
* [`save`]({% slug api_grid_gridcomponent %}#toc-save) event fires.
*
* @example
* ```html
* <kendo-grid>
* <kendo-toolbar>
* <kendo-toolbar-button text="Save" kendoGridSaveTool></kendo-toolbar-button>
* </kendo-toolbar>
* </kendo-grid>
* ```
* @remarks
* Applied to: {@link ToolBarButtonComponent}.
*/
export declare class SaveCommandToolbarDirective extends ToolbarEditingToolBase {
editService: EditService;
constructor(editService: EditService, host: ToolBarButtonComponent, selection: SelectionService, ctx: ContextService, zone: NgZone, cdr: ChangeDetectorRef);
/**
* @hidden
*/
onClick(e: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SaveCommandToolbarDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<SaveCommandToolbarDirective, "[kendoGridSaveTool]", never, {}, {}, never, never, true, never>;
}