PHP Classes

File: src/components/table/TableInterface.ts

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/table/TableInterface.ts   Download  
File: src/components/table/TableInterface.ts
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 917 bytes


Class file image Download
/** * Table Header Definition. */ export interface ITableHeader { key: string; title: string; className?: string; } /** * Table Cell Definition. */ export interface ITableCell { key: string; value: string | number | JSX.Element; className?: string; } /** * Table Row Definition. */ export interface ITableRow { id: number; cells: Array<ITableCell>; } /** * Table Header Prop Definition. */ export interface ITableLoading { headers: Array<ITableHeader>; count?: number; showPagination?: boolean; hasCheckbox?: boolean; } /** * Table Prop Definition. */ export interface ITable { headers: Array<ITableHeader>; rows: Array<ITableRow>; showPagination?: boolean; totalItems?: number; perPage?: number; currentPage?: number; checkedAll?: boolean; onChangePage?: Function; onCheckAll?: Function; noDataMessage?: string; }