UNPKG

ucbuilder

Version:

For Developing Applications with multiple form/usercontrols etc.. In Single BrowserWindow...

43 lines (42 loc) 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tableSplitter = void 0; const { newObjectOpt } = require("ucbuilder/global/objectOpt"); const tableParam = { /** @type {HTMLElement} */ table: undefined, /** @type {string} */ trTagName: undefined, /** @type {string} */ tdTagName: undefined }; class tableSplitter { constructor() { this.node = { /** @type {HTMLTableElement} */ table: undefined, /** @type {HTMLElement} */ container: undefined, /** @type {string} */ trNodeName: undefined, /** @type {string} */ tdNodeName: undefined, }; } /** @param {tableParam} param0 */ init(param0) { /*let options = newObjectOpt.copyProps(param0, tableParam); this.node.table = options.table; switch (this.table.nodeName) { case "TABLE": this.node.trNodeName = 'TR'; this.node.tdNodeName = 'TD'; break; default: this.node.trNodeName = options.trTagName; this.node.tdNodeName = options.tdTagName; break; }*/ } } exports.tableSplitter = tableSplitter;