OptionalgetMetadata store object.
OptionalgetIMPLEMENTATION 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 rowOptionalsetIMPLEMENTATION 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.
OptionalmetadataStore: RowMetadata[]New metadata store object. Omitted on data model reset.
OptionalsetIMPLEMENTATION 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.
OptionalnewMetadata: 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
getMetadataStoreitself. If implemented, Hypergrid does make a single call tosetMetadataStorewhen data model is reset with no arguments.