jsOMS/UI/TableManager.js

64 lines
1.4 KiB
JavaScript

/**
* Table manager class.
*
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0 * @since 1.0.0
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.UI');
/**
* @constructor
*
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
jsOMS.UI.TableManager = function (responseManager)
{
this.responseManager = responseManager;
};
/**
* Bind & rebind UI elements.
*
* @param {string} [id] Element id
*
* @method
*
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
jsOMS.UI.TableManager.prototype.bind = function (id)
{
if (typeof id !== 'undefined') {
this.bindElement(document.getElementById(id));
} else {
const tables = document.querySelectorAll('.tables');
for (var i = 0; i < tables.length; i++) {
this.bindElement(tables[i]);
}
}
};
/**
* Bind & rebind UI element.
*
* @param {Object} [e] Element id
*
* @method
*
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
jsOMS.UI.TableManager.prototype.bindElement = function (e)
{
};
}(window.jsOMS = window.jsOMS || {}));