UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

174 lines (173 loc) 3.46 kB
import { TemplateRef } from '@angular/core'; /** * State of the paginator. * @group Interface */ export interface DataViewPaginatorState { /** * Current page. */ page?: number; /** * First item in the current page. */ first?: number; /** * Row count. */ rows?: number; /** * Page count. */ pageCount?: number; } /** * Custom lazy load event. * @see {@link DataView.onLazyLoad} * @group Events */ export interface DataViewLazyLoadEvent { /** * Index of the first element. */ first: number; /** * Row count. */ rows: number; /** * Property name of data to use in sorting by default. */ sortField: string; /** * Order to sort the data by default. */ sortOrder: number; } /** * Custom page event. * @see {@link DataView.onPage} * @group Events */ export interface DataViewPageEvent { /** * Index of the first element. */ first: number; /** * Row count. */ rows: number; } /** * Custom sort event. * @see {@link DataView.onSort} * @group Events */ export interface DataViewSortEvent { /** * Sort field. */ sortField: string; /** * Sort order. */ sortOrder: number; } /** * Custom layout change. * @see {@link DataView.onChangeLayout} * @group Events */ export interface DataViewLayoutChangeEvent { /** * Layout of the component. */ layout: 'list' | 'grid'; } /** * Defines valid templates in DataView. * @group Templates */ export interface DataViewTemplates { /** * Custom list template. * @param {Object} context - data of the DataView. */ list(context: { /** * Rows data. */ $implicit: any; }): TemplateRef<{ $implicit: any; }>; /** * Custom grid template. * @param {Object} context - data of the DataView. */ grid(context: { /** * Rows data. */ $implicit: any; }): TemplateRef<{ $implicit: any; }>; /** * Custom paginator left template. * @param {Object} context - paginator state. */ paginatorleft(context: { /** * State of the paginator. */ $implicit: DataViewPaginatorState; }): TemplateRef<DataViewPaginatorState>; /** * Custom paginator right template. * @param {Object} context - paginator state. */ paginatorright(context: { /** * State of the paginator. */ $implicit: DataViewPaginatorState; }): TemplateRef<DataViewPaginatorState>; /** * Custom paginator dropdown template. * @param {Object} context - dropdown item. */ paginatordropdownitem(context: { /** * Dropdown item instance. */ $implicit: any; }): TemplateRef<{ $implicit: any; }>; /** * Custom empty message template. */ emptymessage(): TemplateRef<any>; /** * Custom header template. */ header(): TemplateRef<any>; /** * Custom footer template. */ footer(): TemplateRef<any>; /** * Custom loading icon template. */ loadingicon(): TemplateRef<any>; /** * Custom list icon template. */ listicon(): TemplateRef<any>; /** * Custom grid icon template. */ gridicon(): TemplateRef<any>; }