UNPKG

ng-table

Version:

Table + AngularJS ================= [![Build Status](https://travis-ci.org/esvit/ng-table.svg)](https://travis-ci.org/esvit/ng-table) [![Coverage Status](https://coveralls.io/repos/esvit/ng-table/badge.png)](https://coveralls.io/r/esvit/ng-table) [![seman

21 lines (20 loc) 789 B
/// <reference types="angular" /> import { IPromise } from 'angular'; import { NgTableParams } from '../ngTableParams'; /** * Signature of a function that will called whenever {@link NgTableParams} requires to load * data rows into the table. * @param params the table requesting the data rows */ export interface IGetDataFunc<T> { (params: NgTableParams<T>): T[] | IPromise<T[]>; } /** * Variation of the {@link IGetDataFunc} function signature that allows for flexibility for * the shape of the return value. * Typcially you will use this function signature when you want to configure {@link NgTableParams} * with interceptors that will return the final data rows array. */ export interface IInterceptableGetDataFunc<T> { <TResult>(params: NgTableParams<T>): TResult; }