MCPcopy Create free account
hub / github.com/handsontable/handsontable / constructor

Method constructor

handsontable/src/dataMap/dataMap.ts:142–152  ·  view source on GitHub ↗

* @param {object} hotInstance Instance of Handsontable. * @param {Array} data Array of arrays or array of objects containing data. * @param {MetaManager} metaManager The meta manager instance.

(hotInstance: HotInstance, data: (Record<string, unknown> | unknown[])[], metaManager: MetaManagerLike)

Source from the content-addressed store, hash-verified

140 * @param {MetaManager} metaManager The meta manager instance.
141 */
142 constructor(hotInstance: HotInstance, data: (Record<string, unknown> | unknown[])[], metaManager: MetaManagerLike) {
143 this.hot = hotInstance;
144 this.metaManager = metaManager;
145 this.tableMeta = metaManager.getTableMeta();
146 this.dataSource = data;
147 this.colToPropCache = [];
148 this.propToColCache = new Map();
149
150 this.refreshDuckSchema();
151 this.createMap();
152 }
153
154 /**
155 * Generates cache for property to and from column addressation.

Callers

nothing calls this directly

Calls 3

refreshDuckSchemaMethod · 0.95
createMapMethod · 0.95
getTableMetaMethod · 0.65

Tested by

no test coverage detected