]>
git.proxmox.com Git - pmg-gui.git/blob - js/mobile/component.js
2 constructor(config
= {}) {
5 me
.data
= config
.data
|| {};
6 me
.tpl
= me
.config
.tpl
|| '<div class="component"></div>';
10 if (!me
._compiledtpl
) {
11 me
._compiledtpl
= Template7
.compile(me
.tpl
);
13 return me
._compiledtpl
;
17 if (data
=== undefined && me
._el
) {
19 } else if (data
!== undefined) {
22 me
._el
= Dom7(me
.getTpl()(me
.data
));