BUG 0000 Incorporation of dashlet ProcessMakerEnterprise
This commit is contained in:
@@ -189,6 +189,31 @@ Ext.onReady(function(){
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
case "dashletProcessMakerEnterprise":
|
||||
var np = new Ext.ux.Portlet({
|
||||
title: dashletsInstances[i].DAS_TITLE,
|
||||
dasInsUid : dashletsInstances[i].DAS_INS_UID,
|
||||
html: 'gauge placeholder',
|
||||
listeners: {
|
||||
'render': function(p){
|
||||
p.html = 'hello ' + p.getWidth();
|
||||
},
|
||||
'move' : function(p){
|
||||
Ext.Msg.alert('Portlet ', 'move ' + p.getWidth() );
|
||||
p.html = 'show ' + p.getWidth();
|
||||
},
|
||||
'resize' : function(p, w, h){
|
||||
var img = new Ext.XTemplate("<iframe src=\"{page}?DAS_INS_UID={id}\" width=\"413\" height=\"217\" frameborder=\"0\"></iframe>").apply({
|
||||
page: "dashboard/renderDashletInstance",
|
||||
id: p.dasInsUid
|
||||
})
|
||||
|
||||
p.update(img);
|
||||
}
|
||||
}
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
pd.items.items[i % 3].add( np );
|
||||
|
||||
Reference in New Issue
Block a user