EasyDataTable class

Index

Constructors

Public Properties

Public Accessors

Public Methods

Protected Methods

Constructors


constructor

⊕ new EasyDataTable(options?: EasyDataTableOptions): EasyDataTable

Parameters:


Public Properties


id

● id: string


Public Accessors


chunkSize

⇄ get chunkSize(): number

Returns number


⇄ set chunkSize(value: number): void

Parameters:

  • value: number

Returns void


columns

⇄ get columns(): DataColumnList

Returns DataColumnList


Public Methods


addRow

▸ addRow(rowOrValue: any[] | DataRow): DataRow

Parameters:

Returns DataRow


clear

▸ clear(): void

Returns void


getCachedChunks

▸ getCachedChunks(): CachedChunk[]

Returns CachedChunk[]


getCachedCount

▸ getCachedCount(): number

Returns number


getCachedRows

▸ getCachedRows(): DataRow[]

Returns DataRow[]


getRow

▸ getRow(index: number): Promise<DataRow | null>

Parameters:

  • index: number

Returns Promise<DataRow | null>


getRows

▸ getRows(params?: GetRowsParams): Promise<Array<DataRow>>

Parameters:

  • params: GetRowsParams, Optional

Returns Promise<Array<DataRow>>


getTotal

▸ getTotal(): number

Returns number


setTotal

▸ setTotal(total: number): void

Parameters:

  • total: number

Returns void


Protected Methods


createChunk

▸ createChunk(index?: number): CachedChunk

Parameters:

  • index: number, Optional

Returns CachedChunk


createRow

▸ createRow(dataOrRow?: DataRow | any): DataRow

Parameters:

  • dataOrRow: DataRow | any, Optional

Returns DataRow