OfflineTable
Defined in: offline/sw/offline-table.ts:54
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OfflineTable(
entities):OfflineTable
Defined in: offline/sw/offline-table.ts:57
Parameters
Section titled “Parameters”entities
Section titled “entities”EntityType[]
Returns
Section titled “Returns”OfflineTable
Methods
Section titled “Methods”getTableRequest()
Section titled “getTableRequest()”getTableRequest(
request):any
Defined in: offline/sw/offline-table.ts:61
Parameters
Section titled “Parameters”request
Section titled “request”Request
Returns
Section titled “Returns”any
table()
Section titled “table()”table(
request):TableResponse
Defined in: offline/sw/offline-table.ts:88
Filter the entities in the table, and then paginate the results. Return in the format of a table response.
Parameters
Section titled “Parameters”request
Section titled “request”any
Returns
Section titled “Returns”paginate()
Section titled “paginate()”paginate(
request):PaginationResponse
Defined in: offline/sw/offline-table.ts:107
Filter and paginate the entities in the table.
Parameters
Section titled “Parameters”request
Section titled “request”any
Returns
Section titled “Returns”filter()
Section titled “filter()”filter(
request,entities?):EntityType[]
Defined in: offline/sw/offline-table.ts:146
Filter the entities in the table by the pre_filters and filters.
Parameters
Section titled “Parameters”request
Section titled “request”any
entities?
Section titled “entities?”EntityType[] = ...
Returns
Section titled “Returns”EntityType[]
filterEntities()
Section titled “filterEntities()”filterEntities(
entities,filter):EntityType[]
Defined in: offline/sw/offline-table.ts:164
Filter the entities in the table.
Parameters
Section titled “Parameters”entities
Section titled “entities”EntityType[]
filter
Section titled “filter”Returns
Section titled “Returns”EntityType[]
paginateEntities()
Section titled “paginateEntities()”paginateEntities(
entities,page,resultsPerPage?):EntityType[]
Defined in: offline/sw/offline-table.ts:175
Paginate the entities in the table.
Parameters
Section titled “Parameters”entities
Section titled “entities”EntityType[]
number
resultsPerPage?
Section titled “resultsPerPage?”number = 15
Returns
Section titled “Returns”EntityType[]
match()
Section titled “match()”match(
entity,filter):boolean
Defined in: offline/sw/offline-table.ts:186
Match the entity against the filter.
Parameters
Section titled “Parameters”entity
Section titled “entity”EntityType
filter
Section titled “filter”Returns
Section titled “Returns”boolean
matchClause()
Section titled “matchClause()”matchClause(
entity,clause):boolean
Defined in: offline/sw/offline-table.ts:196
Match the entity against the clause.
Parameters
Section titled “Parameters”entity
Section titled “entity”EntityType
clause
Section titled “clause”any
Returns
Section titled “Returns”boolean