UNPKG

ng2-qgrid

Version:
63 lines (62 loc) 2.77 kB
import { EventEmitter, OnInit, ElementRef, NgZone } from '@angular/core'; import { RootComponent } from '../../infrastructure/component/root.component'; import { RootService } from '../../infrastructure/component/root.service'; import { LayerService } from '../core/layer/layer.service'; import { ThemeService } from '../../template/theme.service'; import { Action } from 'ng2-qgrid/core/action/action'; import { ColumnModel } from 'ng2-qgrid/core/column-type/column.model'; import { FetchContext } from 'ng2-qgrid/core/fetch/fetch.context'; import { PipeContext } from 'ng2-qgrid/core/pipe/pipe.item'; import { StyleRowContext, StyleCellContext } from 'ng2-qgrid/core/style/style.context'; import { VisibilityModel } from 'ng2-qgrid/core/visibility/visibility.model'; import { Command } from 'ng2-qgrid/core/command/command'; import { GridModel } from '../../plugins/plugin.service'; export declare class GridComponent extends RootComponent implements OnInit { private root; private element; private zone; private layerService; private document; model: GridModel; actionItems: Array<Action>; gridTitle: string; gridCaption: string; gridInteractionMode: 'full' | 'readonly' | 'detached'; gridId: string; dataColumns: Array<ColumnModel>; dataPipe: Array<(memo: any, context: PipeContext, next: (memo: any) => void) => any>; dataRows: Array<any>; editCancel: Command; editCommit: Command; editEnter: Command; editMethod: null | 'batch'; editMode: 'cell' | 'row'; editReset: Command; filterFetch: (key: string, context: FetchContext) => any | Promise<any>; filterUnit: 'default' | 'row'; groupBy: Array<string>; groupMode: 'nest' | 'column' | 'subhead' | 'rowspan'; groupSummary: null | 'leaf'; pivotBy: Array<string>; selectionItems: Array<any>; selectionArea: 'custom' | 'body'; selectionKey: { row: () => void; column: () => void; }; selectionMode: 'single' | 'multiple' | 'range'; selectionUnit: 'row' | 'cell' | 'column' | 'mix'; scrollMode: 'default' | 'virtual'; sortBy: Array<string>; sortMode: 'single' | 'multiple'; sortTrigger: Array<string>; styleCell: (row: any, column: ColumnModel, context: StyleCellContext) => void | { [key: string]: (row: any, column: ColumnModel, context: any) => void; }; styleRow: (row: any, context: StyleRowContext) => void; selectionChanged: EventEmitter<any>; themeComponent: any; constructor(root: RootService, element: ElementRef, zone: NgZone, layerService: LayerService, document: any, theme: ThemeService); ngOnInit(): void; readonly visibility: VisibilityModel; }