fires after the user finished dragging the grid's border to resize the grid
old_width | number | the initial grid's width |
new_width | number | the new grid's width |
boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
Available only in PRO Edition
// return false to discard the resize action
gantt.attachEvent("onGridResizeEnd", function(old_width, new_width){
gantt.message.hide(message);
message = null;
gantt.message(`Grid is now <b>${new_width}</b>px width`);
return true;
});
This functionality is available in the PRO edition only.
The event is blockable. Returning false will cancel grid resizing.