![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/libs/absol-full/dist/js/ |
Upload File : |
/*** module: node_modules/absol-acomp/js/treetable/TTCell.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ACore = require("../../ACore"); var _DTBodyCell = _interopRequireDefault(require("../dynamictable/DTBodyCell")); var _utils = require("../utils"); /*** * * @param {TTRow} row * @param {TTDCell} data * @constructor */ function TTCell(row, data) { this.row = row; this.data = data; } Object.defineProperty(TTCell.prototype, 'elt', { get: function () { if (!this._elt) { this._elt = (0, _ACore._)({ tag: 'td', class: 'as-tree-table-cell', props: { ttCell: this }, on: { click: event => { if (this.data && this.data.on && this.data.on.click) { this.data.on.click.call(this._elt, event, this); } } } }); if (typeof this.data.class === "string") { (0, _utils.addElementClassName)(this._elt, this.data.class); } if (this.data.attr) this._elt.attr(this.data.attr); if (this.data.class) this._elt.addClass(this.data.class); if (this.data.style) this._elt.addStyle(this.data.style); this.row.body.table.elt.mAdapter.renderBodyCell(this.elt, this.data, this); } return this._elt; } }); Object.defineProperty(TTCell.prototype, 'innerText', Object.getOwnPropertyDescriptor(_DTBodyCell.default.prototype, 'innerText')); var _default = TTCell; exports.default = _default;