Skip to content

OfflineTable

Constructors

new OfflineTable()

new OfflineTable(entities): OfflineTable

Parameters

entities: EntityType[]

Returns

OfflineTable

Defined in

offline/sw/offline-table.ts:57

Methods

getTableRequest()

getTableRequest(request): any

Parameters

request: Request

Returns

any

Defined in

offline/sw/offline-table.ts:61


table()

table(request): TableResponse

Filter the entities in the table, and then paginate the results. Return in the format of a table response.

Parameters

request: any

Returns

TableResponse

Defined in

offline/sw/offline-table.ts:88


paginate()

paginate(request): PaginationResponse<EntityType>

Filter and paginate the entities in the table.

Parameters

request: any

Returns

PaginationResponse<EntityType>

Defined in

offline/sw/offline-table.ts:107


filter()

filter(request, entities): EntityType[]

Filter the entities in the table by the pre_filters and filters.

Parameters

request: any

entities: EntityType[] = ...

Returns

EntityType[]

Defined in

offline/sw/offline-table.ts:146


filterEntities()

filterEntities(entities, filter): EntityType[]

Filter the entities in the table.

Parameters

entities: EntityType[]

filter: DNF<EntityType>

Returns

EntityType[]

Defined in

offline/sw/offline-table.ts:164


paginateEntities()

paginateEntities(entities, page, resultsPerPage): EntityType[]

Paginate the entities in the table.

Parameters

entities: EntityType[]

page: number

resultsPerPage: number = 15

Returns

EntityType[]

Defined in

offline/sw/offline-table.ts:175


match()

match(entity, filter): boolean

Match the entity against the filter.

Parameters

entity: EntityType

filter: DNF<EntityType>

Returns

boolean

Defined in

offline/sw/offline-table.ts:186


matchClause()

matchClause(entity, clause): boolean

Match the entity against the clause.

Parameters

entity: EntityType

clause: any

Returns

boolean

Defined in

offline/sw/offline-table.ts:196