/** * Table manager class. * * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @since 1.0.0 */ (function (jsOMS) { "use strict"; jsOMS.Autoloader.defineNamespace('jsOMS.UI.Component'); /** * @constructor * * @since 1.0.0 */ jsOMS.UI.Component.Table = function (responseManager) { this.responseManager = responseManager; }; /** * Bind & rebind UI elements. * * @param {string} [id] Element id * * @method * * @since 1.0.0 */ jsOMS.UI.Component.Table.prototype.bind = function (id) { if (typeof id !== 'undefined') { const e = document.getElementById(id); if(e) { this.bindElement(e); } } else { const tables = document.getElementsByTagName('table'), length = !tables ? 0 : tables.length; for (var i = 0; i < length; i++) { this.bindElement(tables[i]); } } }; /** * Bind & rebind UI element. * * @param {Object} [e] Element id * * @method * * @since 1.0.0 */ jsOMS.UI.Component.Table.prototype.bindElement = function (e) { }; }(window.jsOMS = window.jsOMS || {}));