UNPKG

ng-pure-datatable

Version:

This is a Angular datatable for tables which is not dependent on jquery. This is fully written with typescript and it uses observables to communicate events across the user defined table. This is inspired by previous libraries I wrote for `Larang-Paginato

52 lines (51 loc) 1.44 kB
import { OnInit } from '@angular/core'; import { NgSearchInterface } from "./ng-search/ng-search.interface"; import { NgPureDataTableEventService } from "./ng-pure-datatable-event.service"; export declare class NgPureDatatableComponent implements OnInit { private ngPureDataTableEventService; key: string; id: string; disableSearch: boolean; disablePaging: boolean; paginateSettings: paginateSettings; searchSettings: NgSearchInterface<Object>; top: number; style: { position: string; 'margin-bottom': string; }; limitStyle: any; ranges: any[]; constructor(ngPureDataTableEventService: NgPureDataTableEventService); ngOnInit(): void; /** * This is used to generate limit range. */ processLimit(): void; /** * This is used to update limit * @param limit */ updateLimit(limit: any): void; /** * This is used to set the border color for the div * @returns {{border-bottom: string}} */ setBorderColor(): { 'border-bottom': string; }; /** * This is used to configure search and limit position */ configSearchDisplay(): void; } export interface paginateSettings { data: Object; path: string; limit: number; from: string; perNav: number; viewPage: string; paginate: string; textColor: string; }