Getting Started
Usages
Columns
API References
ngx-panemu-table / Class

PanemuTableDataSource

Generic types:T

A convenience datasource class that handle client side sorting, filtering, grouping and pagination.

Constructor

No documentation has been provided.

Presentation
constructor(
	data?: T[] | undefined
): PanemuTableDataSource<T>;
Parameters
NameTypeDescription
data
T[] | undefined

the data similar to calling setData() method

Methods

protected

betweenFilter()

No documentation has been provided.

Presentation
protected betweenFilter(betweenOperator: string, value: any, criteriaValue: string): boolean;
Parameters
NameTypeDescription
betweenOperator
string
value
any
criteriaValue
string
Returns

boolean

protected

filter()

No documentation has been provided.

Presentation
protected filter(result: T[], tableCriteria: TableCriteria[]): T[];
Parameters
NameTypeDescription
result
T[]
tableCriteria
TableCriteria[]
Returns

T[]

getAllData()

Get all data in this datasource from the setData() method or from the constructor.

Presentation
getAllData(): T[];
Returns

T[]

getData()

Get data with the specified start index, maximum of maxRows is taken, matching the criteria in tableQuery.

Presentation
getData(start: number, maxRows: number, tableQuery: TableQuery): Observable<TableData<T>>;
Parameters
NameTypeDescription
start
number
maxRows
number
tableQuery
TableQuery
Returns

Observable<TableData<T>>

protected

group()

No documentation has been provided.

Presentation
protected group(result: T[], groupBy?: GroupBy | undefined): RowGroupData[] | null;
Parameters
NameTypeDescription
result
T[]
groupBy
GroupBy | undefined
Returns

RowGroupData[] | null

setData()

Set data to the datasource.

Presentation
setData(data: T[]): void;
Parameters
NameTypeDescription
data
T[]
Returns

void

protected

sort()

No documentation has been provided.

Presentation
protected sort(result: T[], sortings: SortingInfo[]): void;
Parameters
NameTypeDescription
result
T[]
sortings
SortingInfo[]
Returns

void

protected

toDate()

No documentation has been provided.

Presentation
protected toDate(value: string): string;
Parameters
NameTypeDescription
value
string
Returns

string

protected

toMonth()

No documentation has been provided.

Presentation
protected toMonth(value: string): string;
Parameters
NameTypeDescription
value
string
Returns

string

protected

toYear()

No documentation has been provided.

Presentation
protected toYear(value: string): string;
Parameters
NameTypeDescription
value
string
Returns

string