- var body = cfg;
-
- if (this.panel.length) {
- cfg.cls += ' panel panel-' + this.panel;
- cfg.cn = [];
- if (this.header.length) {
-
- var h = [];
-
- if(this.expandable){
-
- cfg.cls = cfg.cls + ' expandable';
-
- h.push({
- tag: 'i',
- cls: (this.expanded ? 'fa fa-minus' : 'fa fa-plus')
- });
-
- }
-
- h.push(
- {
- tag: 'span',
- cls : 'panel-title',
- html : (this.expandable ? ' ' : '') + this.header
- },
- {
- tag: 'span',
- cls: 'panel-header-right',
- html: this.rheader
- }
- );
-
- cfg.cn.push({
- cls : 'panel-heading',
- style : this.expandable ? 'cursor: pointer' : '',
- cn : h
- });
-
- }
-
- body = false;
- cfg.cn.push({
- cls : 'panel-body' + (this.expanded ? '' : ' hide'),
- html : this.html