Optional
fetchUsed to Prefetch data
Unordered list of rectangular regions of cells to fetch in a single (atomic) operation.
Optional
callback: (failure: boolean) => voidOptional callback. If provided, implementation calls it with false
on success (requested data fully fetched) or true
on failure.
Tells dataModel what cells will be needed by subsequent calls to RevDataServer#getViewValue. This helps remote or virtualized data models fetch and cache data. If your data model doesn't need to know this, don't implement it.
Optional
getCursor to be displayed when mouse hovers over cell containing data point
Optional
getGet a field's value at the specified row in a format suitable for editing.
The field from which to get the value
The index of the row from which to get the value
The value of the field at the specified row.
This function only needs to be implemented if cells can be edited. See RevCellEditor for more information about editing data.
The core of the client does not need to know the type of the return value. getEditValue()
is called by the Cell Editor
associated with the cell.
A cell editor expects a certain type of view value and casts the result accordingly.
The current count of rows data in the server.
Number of data rows.
Optional
getIMPLEMENTATION OF THIS METHOD IS OPTIONAL.
Only called by Hypergrid when it receives the data-prereindex
or data-postreindex
events.
These events are typically triggered before and after data model remaps the rows (in its apply
method).
Grid row index.
Unique Id of row specified by rowIndex.
Optional
getOptional
getTitle text to be displayed when mouse hovers over cell containing data point
Optional
getIMPLEMENTATION OF THIS METHOD IS OPTIONAL.
All grid data.
Optional
metadataFieldName: stringIf provided, the output will include the row metadata object in a "hidden" field with this name.
All the grid's data rows.
Optional
getIMPLEMENTATION OF THIS METHOD IS OPTIONAL.
Get a row of data.
The injected default implementation is an object of lazy getters.
The data row corresponding to the given rowIndex
. If row does not exist, then throw error.
Get a field's value at the specified row in a format suitable for display.
The field from which to get the value
The index of the row from which to get the value
The value of the field at the specified row.
Optional
setIMPLEMENTATION OF THIS METHOD IS OPTIONAL.
Set a cell's value given its column schema & row indexes and a new value.
Optional
setIMPLEMENTATION OF THIS METHOD IS OPTIONAL.
Update a row in place, without deleting the row (and without affecting succeeding rows' indexes).
Updated row value
Subscribe to data notifications from the server.
An interface with callbacks used to notify the grid of changes to data.
Optional
unsubscribeUnsubscribe from data notifications.
A reference to the handler originally provided to RevDataServer#subscribeDataNotifications.
Interface used by client to get data from a server