webpack-bootstrap-ui-kit/src/js/_layout.js
2019-11-27 12:29:20 +07:00

48 lines
750 B
JavaScript
Executable File

"use strict";
import $ from 'jquery';
import Events from './_events';
const LayoutUI = (($) => {
// Constants
const W = window;
const D = document;
const $Body = $('body');
const NAME = 'LayoutUI';
const datepickerOptions = {
autoclose: true,
startDate: 0,
//todayBtn: true,
todayHighlight: true,
clearBtn: true,
};
class LayoutUI {
static init() {
const ui = this;
ui.dispose();
console.log(`Initializing: ${NAME}`);
// your custom UI
}
static dispose() {
console.log(`Destroying: ${NAME}`);
}
}
$(W).on(`${Events.AJAX} ${Events.LOADED}`, () => {
LayoutUI.init();
});
W.LayoutUI = LayoutUI;
return LayoutUI;
})($);
export default LayoutUI;