/** * The table meta object is a layer that keeps all settings of the Handsontable that was passed in * the constructor. That layer contains all default settings inherited from the GlobalMeta layer * merged with settings passed by the developer. Adding, removing, or changing property in that * object has no direct reflection on any other layers. * * +-------------+. * │ GlobalMeta │ * │ (prototype) │ * +-------------+\ * │ \ * │ \ * \│/ _\| * +-------------+ +-------------+. * │ TableMeta │ │ ColumnMeta │ * │ (instance) │ │ (prototype) │ * +-------------+ +-------------+. * │ * │ * \│/ * +-------------+. * │ CellMeta │ * │ (instance) │ * +-------------+. */ export default class TableMeta { /** * Main object (instance of the internal TableMeta class from GlobalMeta), holder for all settings defined in the table scope. * * @type {TableMeta} */ meta: Record; /** * Initializes the table meta layer by instantiating a new meta object from the GlobalMeta constructor. */ constructor(globalMeta: { getMetaConstructor(): new (...args: unknown[]) => unknown; }); /** * Gets settings object for this layer. * * @returns {TableMeta} */ getMeta(): Record; /** * Updates table settings object by merging settings with the current state. * * @param {object} settings An object to merge with. */ updateMeta(settings: Record): void; }