73 lines
1.5 KiB
JavaScript
73 lines
1.5 KiB
JavaScript
![]() |
|
||
|
var menu_data = [
|
||
|
{id: 'app_home', icon: 'dashboard', value: 'Inicio'},
|
||
|
{id: 'app_emisor', icon: 'user-circle', value: 'Emisor'},
|
||
|
{id: 'app_cert', icon: 'key', value: 'Certificado'},
|
||
|
]
|
||
|
|
||
|
|
||
|
var sidebar = {
|
||
|
view: 'sidebar',
|
||
|
data: menu_data,
|
||
|
ready: function(){
|
||
|
this.select('app_home');
|
||
|
this.open(this.getParentId('app_home'));
|
||
|
},
|
||
|
on:{
|
||
|
onAfterSelect: function(id){
|
||
|
$$('multi').setValue(id)
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
var multi_main = {
|
||
|
id: 'multi',
|
||
|
animate: true,
|
||
|
cells:[
|
||
|
{
|
||
|
id: 'app_home',
|
||
|
view: 'template',
|
||
|
template: 'HOME'
|
||
|
}
|
||
|
//~ app_emisor,
|
||
|
]
|
||
|
};
|
||
|
|
||
|
|
||
|
var menu_user = {
|
||
|
view: 'menu',
|
||
|
id: 'menu_user',
|
||
|
width: 150,
|
||
|
autowidth: true,
|
||
|
data: [
|
||
|
{id: '0', value: 'User...', submenu:[{id:1, value:'Cerrar Sesión'}]},
|
||
|
],
|
||
|
type: {
|
||
|
subsign: true,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
var ui_admin = {
|
||
|
rows: [
|
||
|
{view: 'toolbar', padding: 3, elements: [
|
||
|
{view: 'button', type: 'icon', icon: 'bars',
|
||
|
width: 37, align: 'left', css: 'app_button', click: function(){
|
||
|
$$('$sidebar1').toggle()
|
||
|
}
|
||
|
},
|
||
|
{view: 'label', label: 'Empresa Libre - Configuración'},
|
||
|
{},
|
||
|
{view: 'button', type: 'icon', width: 40, css: 'app_button',
|
||
|
icon: 'home', click: 'cmd_home_click'},
|
||
|
menu_user
|
||
|
]},
|
||
|
{
|
||
|
cols:[
|
||
|
sidebar,
|
||
|
multi_main,
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
};
|