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

Method createContainer

handsontable/src/utils/ghostTable.ts:515–525  ·  view source on GitHub ↗

* Create container for tables. * * @param {string} className The CSS classes to add. * @returns {object}

(className = '')

Source from the content-addressed store, hash-verified

513 * @returns {object}
514 */
515 createContainer(className = ''): GhostContainerStruct {
516 const rootDocument = this.hot!.rootDocument;
517 const fragment = rootDocument.createDocumentFragment();
518 const container = rootDocument.createElement('div');
519 const containerClassName = `htGhostTable htAutoSize ${className.trim()}`;
520
521 addClass(container, containerClassName);
522 fragment.appendChild(container);
523
524 return { fragment, container };
525 }
526
527 /**
528 * Checks if table is raised vertically (checking rows).

Callers 3

addRowMethod · 0.95
addColumnHeadersRowMethod · 0.95
addColumnMethod · 0.95

Calls 1

addClassFunction · 0.90

Tested by

no test coverage detected