updates
This commit is contained in:
+1
-43
@@ -1,7 +1,7 @@
|
||||
import './css/app-ui.css';
|
||||
|
||||
import { Ut } from '../utils/Ut';
|
||||
import { El } from '../utils/dom';
|
||||
import { El, EvtOptions } from '../utils/dom';
|
||||
import { Boot } from './Boot';
|
||||
import { Cancelable } from '../widgets/cancelable/Cancelable';
|
||||
import { DatePicker } from '../widgets/date-picker/DatePicker';
|
||||
@@ -1099,48 +1099,6 @@ export class Render {
|
||||
nodesList.forEach(props => Render.makeElement(props, parent));
|
||||
}
|
||||
|
||||
/**
|
||||
* Init Module
|
||||
*/
|
||||
static loadSection(id, vars) {
|
||||
|
||||
Boot.vars = vars || {};
|
||||
|
||||
const _section = id.split('.');
|
||||
|
||||
let rootNode = Boot.intData.section[ _section[0] ];
|
||||
|
||||
// RootNode is missing
|
||||
if (!Ut.isSet(rootNode)) {
|
||||
|
||||
if (Boot.DEBUG) {
|
||||
console.log('Section not found');
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Set sectionList as global
|
||||
Boot._section = _section;
|
||||
|
||||
// Subsection present
|
||||
if (_section.length == 2) {
|
||||
|
||||
// assign (that) object
|
||||
rootNode = Object.assign({}, rootNode, { that: rootNode.children.section[_section[1]] });
|
||||
}
|
||||
|
||||
// Set section root (rootnode children)
|
||||
Boot.r = rootNode.children || {};
|
||||
|
||||
// This is the current section
|
||||
Boot.section = id;
|
||||
|
||||
// Set listener evt options
|
||||
EvtOptions.nsEvent = true;
|
||||
EvtOptions.section = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render UI Component
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user