/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { ColDef, ColGroupDef, DetailGridInfo, GridOptions } from '@ag-grid-community/core'; import { OnInit } from '@angular/core'; import { ToolbarAction } from './grid-toolbar/grid-toolbar.types'; import { DatoGridComponent } from './grid/grid.component'; import { Subject } from 'rxjs'; import { DatoGridAPI } from './dato-grid-api'; export declare type GridColumns = (ColDef | ColGroupDef)[]; /** * Base component for grid components */ export declare abstract class DatoGrid extends DatoGridAPI implements OnInit { set gridViewChild(gridComponent: DatoGridComponent); set gridContentChild(gridComponent: DatoGridComponent); options: GridOptions; toolbarActions: ToolbarAction[]; datoGridReady: Subject; private onFilterSortChangedBind; private gridName; constructor(); abstract getColumns(): GridColumns; abstract getToolbarActions(): ToolbarAction[]; /** * @return the name of this grid component. The name used to store filters & sort configuration. */ protected getGridName(): string; /** * Extend GridOptions * @return {GridOptions} */ protected getOptions(): GridOptions; ngOnInit(): void; ngOnDestroy(): void; private removeEventListeners; private registerEvents; /** * An event handler for saving filter & sorting upon change. */ private onFilterSortChanged; /** * Save current filter & sorting models */ private setSavedModel; /** * Initial the grid ready event * @param {DatoGridComponent} datoGrid */ private initialGridReady; }