mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
48 lines
750 B
JavaScript
Executable File
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;
|