Skip to main content

AccountManagerTable

Interface

Account Summary table meta-info NOTE: make sure that you have a unique string id field in each row to identify it.

Properties

changeDelegate

This delegate is used to watch the data changes and update the table. Pass new account manager data row by row to the fire method of the delegate.

Type

ISubscription<(data: {}) => void>


columns

Table columns

Type

AccountManagerColumn[]


deleteDelegate

Optional

This delegate is used to watch the data deletions and update the table. Pass the id of the row that needs to be deleted to the fire method of the delegate.

Type

ISubscription<(id: string) => void>


flags

Optional

Option flags for the table.

Type

AccountManagerTableFlags


id

Unique identifier of a table.

Type

string


initialSorting

Optional

Optional sorting of the table. If set, then the table will be sorted by these parameters, if the user has not enabled sorting by a specific column.

Type

SortingParameters


title

Optional

Optional title of a table.

Type

string

Methods

getData

This function is used to request table data. It should return Promise (or Deferred) and resolve it with an array of data rows.

Each row is an object. Keys of this object are column names with the corresponding values.

There is a predefined field isTotalRow which can be used to mark a row that should be at the bottom of the table.

Signature

getData(paginationLastId?: string | number) => Promise<{}[]>

Parameters

NameTypeDescription
paginationLastId?string | numberLast pagination id

Returns

Promise<{}[]>