Skip to content

OfflineTable

Constructors

new OfflineTable()

new OfflineTable(entities): OfflineTable

Parameters

entities: EntityType[]

Returns

OfflineTable

Defined in

offline/sw/offline-table.ts:55

Methods

getTableRequest()

getTableRequest(request): TableRequest

Parameters

request: Request

Returns

TableRequest

Defined in

offline/sw/offline-table.ts:59


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: TableRequest

Returns

TableResponse

Defined in

offline/sw/offline-table.ts:86


paginate()

paginate(request): PaginationResponse

Filter and paginate the entities in the table.

Parameters

request: TableRequest

Returns

PaginationResponse

Defined in

offline/sw/offline-table.ts:105


filter()

filter(request, entities): EntityType[]

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

Parameters

request: TableRequest

entities: EntityType[] = ...

Returns

EntityType[]

Defined in

offline/sw/offline-table.ts:144


filterEntities()

filterEntities(entities, filter): EntityType[]

Filter the entities in the table.

Parameters

entities: EntityType[]

filter: DNF

Returns

EntityType[]

Defined in

offline/sw/offline-table.ts:162


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:173


match()

match(entity, filter): boolean

Match the entity against the filter.

Parameters

entity: EntityType

filter: DNF

Returns

boolean

Defined in

offline/sw/offline-table.ts:184


matchClause()

matchClause(entity, clause): boolean

Match the entity against the clause.

Parameters

entity: EntityType

clause: FilterClause

Returns

boolean

Defined in

offline/sw/offline-table.ts:194