The row object type.
ReadonlynoteFires when a specific row has changed. The event includes the index of the changed row.
ReadonlynoteFires when a range of rows has changed. The event includes the definition of the changed range.
Protected ReadonlyrowsReturns the total number of items, synchronously or asynchronously.
Inserts item at index, shifting subsequent items to the right.
After this call, getNumberOfItems() must return one more than
before, and getObjectAtRowIndex(index) must return the inserted item.
The zero-based position at which to insert.
The item to insert.
Moves the item at fromIndex to toIndex, shifting other items
to accommodate.
After this call, subsequent calls to getObjectAtRowIndex() and
getNumberOfItems() must reflect the new order.
The current zero-based index of the item to move.
The desired zero-based index for the item.
Notifies consumers that all visible data should be considered stale. Call this after bulk mutations that affect many rows.
Notifies consumers that the row at the given index has been externally mutated (e.g. property values changed in-place).
Call this after directly modifying a row object so that any listening UI (such as a table view) can re-read the data.
Zero-based index of the changed row.
Removes and returns the item at index, shifting subsequent items
to the left.
After this call, getNumberOfItems() must return one fewer than
before.
The zero-based position of the item to remove.
The removed item.
Simple in-memory datasource backed by an array.
The constructor takes a defensive copy of the provided data so that external mutations to the source array do not affect the table.
Implements IActiveDatasource so that UI components automatically stay in sync when rows are inserted, removed, moved, or individually mutated (via notifyRowChanged).
Implements IReorderableDatasource, IInsertableDatasource, and IRemovableDatasource so UI components can reorder items and transfer items between datasources via the capability-detection pattern.