Skip to main content

Interface: AccountManagerTable

Broker.AccountManagerTable

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

Properties

changeDelegate

changeDelegate: ISubscription<(data: ) => void>

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.


columns

columns: AccountManagerColumn[]

Table columns


flags

Optional flags: AccountManagerTableFlags

Option flags for the table.


id

id: string

Unique identifier of a table.


initialSorting

Optional initialSorting: SortingParameters

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.


title

Optional title: string

Optional title of a table.

Methods

getData

getData(paginationLastId?): Promise<[]>

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.

Parameters

NameTypeDescription
paginationLastId?string | numberLast pagination id

Returns

Promise<[]>