UNPKG

@anglr/grid

Version:
79 lines 2.49 kB
import { ElementRef } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { RecursivePartial } from '@jscrpt/common'; import { QueryGridInitializer, QueryGridInitializerOptions } from './queryGridInitializer.interface'; import { GridPlugin, GridPluginInstances } from '../../../interfaces'; import * as i0 from "@angular/core"; /** * Component used for rendering query grid initializer */ export declare class QueryGridInitializerComponent implements QueryGridInitializer, GridPlugin<QueryGridInitializerOptions> { protected router: Router; pluginElement: ElementRef<HTMLElement>; protected route: ActivatedRoute; /** * Options for grid plugin */ protected ɵoptions: QueryGridInitializerOptions; /** * @inheritdoc */ gridPlugins: GridPluginInstances | undefined | null; /** * @inheritdoc */ get options(): QueryGridInitializerOptions; set options(options: RecursivePartial<QueryGridInitializerOptions>); /** * Gets name of page in url */ protected get pageName(): string; /** * Gets name of items per page in url */ protected get itemsPerPageName(): string; /** * Gets name of ordering in url */ protected get orderingName(): string; constructor(router: Router, pluginElement: ElementRef<HTMLElement>, route: ActivatedRoute, options?: QueryGridInitializerOptions); /** * @inheritdoc */ initialize(_force: boolean): void; /** * @inheritdoc */ initOptions(): void; /** * @inheritdoc */ invalidateVisuals(): void; /** * @inheritdoc */ getPage(): number | undefined | null; /** * @inheritdoc */ setPage(page: number | undefined | null): void; /** * @inheritdoc */ getItemsPerPage(): number | undefined | null; /** * @inheritdoc */ setItemsPerPage(itemsPerPage: number | undefined | null): void; /** * @inheritdoc */ getOrdering(): unknown | undefined | null; /** * @inheritdoc */ setOrdering(ordering: unknown | undefined | null): void; static ɵfac: i0.ɵɵFactoryDeclaration<QueryGridInitializerComponent, [null, null, null, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<QueryGridInitializerComponent, "ng-query-grid-initializer", never, {}, {}, never, never, true, never>; } //# sourceMappingURL=queryGridInitializer.component.d.ts.map