BUG 0000 Incorporation of dashlet ProcessMakerEnterprise

This commit is contained in:
Victor Saisa Lopez
2011-12-02 19:09:55 -04:00
parent d3ae215ced
commit 2d05df33ff
2 changed files with 237 additions and 0 deletions

View File

@@ -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 );