Optional
getMetadata store object.
Optional
getIMPLEMENTATION OF THIS METHOD IS OPTIONAL.
Get the row's metadata object, which is a hash of cell properties objects, for those cells that have property overrides, keyed by column name; plus a row properties object with key __ROW
when there are row properties.
The default implementations of getRowMetadata
and setRowMetadata
store the metadata in an in-memory table. If this is not appropriate, override these methods to store the meta somewhere else (e.g., with the data in a hidden column, in another database table, in local storage, etc.).
Row index.
One of:
undefined
- row found but no existing metadata; elsenull
- no such rowOptional
setIMPLEMENTATION OF THIS METHOD IS OPTIONAL.
Set the metadata store. The precise type of this object is implementation-dependent, so not defined here.
If implemented, Hypergrid makes a single call to setMetadataStore
when data model is reset with no arguments. Therefore this method needs to expect a no-arg overload and handle it appropriately.
Hypergrid never calls getMetadataStore
.
Optional
metadataStore: RowMetadata[]New metadata store object. Omitted on data model reset.
Optional
setIMPLEMENTATION OF THIS METHOD IS OPTIONAL.
Set the row's metadata object, which is a hash of cell properties objects, for those cells that have property overrides, keyed by column name; plus a row properties object with key __ROW
when there are row properties.
The default implementations of getRowMetadata
and setRowMetadata
store the metadata in an in-memory table. If this is not appropriate, override these methods to store the meta somewhere else (e.g., with the data in a hidden column, in another database table, in local storage, etc.).
Row index.
Optional
newMetadata: RowMetadataWhen omitted, delete the row's metadata.
Get the metadata store. The precise type of this object is implementation-dependent so not defined here. Hypergrid never calls
getMetadataStore
itself. If implemented, Hypergrid does make a single call tosetMetadataStore
when data model is reset with no arguments.