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

Method constructor

handsontable/src/editorManager.ts:70–82  ·  view source on GitHub ↗

* @param {Core} hotInstance The Handsontable instance. * @param {TableMeta} tableMeta The table meta instance. * @param {Selection} selection The selection instance.

(hotInstance: HotInstance, tableMeta: GridSettings, selection: SelectionManager)

Source from the content-addressed store, hash-verified

68 * @param {Selection} selection The selection instance.
69 */
70 constructor(hotInstance: HotInstance, tableMeta: GridSettings, selection: SelectionManager) {
71 this.hot = hotInstance;
72 this.tableMeta = tableMeta;
73 this.selection = selection;
74 this.eventManager = new EventManager(hotInstance);
75
76 this.hot.addHook('afterDocumentKeyDown', (event: KeyboardEvent) => this.#onAfterDocumentKeyDown(event));
77 this.hot.addHook('beforeCompositionStart', (event: KeyboardEvent) => this.#onAfterDocumentKeyDown(event));
78 this.hot.view._wt.update(
79 'onCellDblClick', (event: MouseEvent, coords: { isCell: () => boolean }, _elem: HTMLElement) =>
80 this.#onCellDblClick(event, coords)
81 );
82 }
83
84 /**
85 * Get active editor.

Callers

nothing calls this directly

Calls 4

#onCellDblClickMethod · 0.95
addHookMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected