BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
jQuery('#dashboard').ejDashboardDesigner().resize(); |
We have provided the resizeDashboard
API to resize the dashboard. Please use the below code,
var data=$("#dashboard").data("ejDashboardDesigner");
data. resizeDashboard();
|
Also is there a callback function after creating the dashboard, what I am trying to achieve is to bind a click functionality on 2 buttons inside the dashboard, graph maximize and graph minimize. But if there is an existing callback function when any graph is maximized/minimized then that would be most helpful. |
You can use actioncomplete event to get the Maximize/Minimize complete event in view mode.
var data=$("#dashboard").data("ejDashboardDesigner");
data.model.actionComplete = dashboardactioncomplete;
Create call back method in your scripts like as below.
function dashboardactioncomplete(args)
{
if(args.eventType === 'maximizeDialogOpen'){
console.log('Maximize completed');}
if(args.eventType === 'maximizeDialogClose'){
console.log('Minimize completed');}
}
|