![]() 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/FlexiconButton.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("../css/flexiconbutton.css"); var _ACore = _interopRequireDefault(require("../ACore")); var _AElement = _interopRequireDefault(require("absol/src/HTML5/AElement")); var _ = _ACore.default._; var $ = _ACore.default.$; /** * @extends AElement * @constructor */ function FlexiconButton() { this._icon = null; this.$content = $('.as-flexicon-button-content', this); this.$iconCtn = $('.as-flexicon-button-icon-container', this); this.$textCtn = $('.as-flexicon-button-text-container', this); } FlexiconButton.tag = 'FlexiconButton'.toLowerCase(); FlexiconButton.render = function () { return _({ tag: 'button', class: 'as-flexicon-button', child: { class: 'as-icon-button-table-box', child: { class: 'as-flexicon-button-content', child: ['.as-flexicon-button-icon-container', '.as-flexicon-button-text-container'] } } }); }; FlexiconButton.property = {}; FlexiconButton.property.icon = { set: function (value) { value = value || null; this._icon = value; this.$iconCtn.clearChild(); if (value !== null) { this.$iconCtn.addChild(_(value)); } }, get: function () { return this._icon; } }; FlexiconButton.property.text = { /*** * * @param {string| {mlKey:string}|*} value */ set: function (value) { value = value || null; this._text = value; this.$textCtn.clearChild(); this.$textCtn.attr('data-ml-key', undefined); if (value === null || value === undefined) {} else if (typeof value === "object") { if (value.mlKey) { this.$textCtn.attr('data-ml-key', value.mlKey); } } else { this.$textCtn.addChild(_({ text: value + '' })); } }, get: function () { return this._text; } }; _ACore.default.install(FlexiconButton); var _default = FlexiconButton; exports.default = _default;