Перейти к основному содержимому

onGridResize

информация

Эта функциональность доступна только в PRO-версии.

Description

Fires when the user is dragging the grid's border to resize the grid

onGridResize: (old_width: number, new_width: number) => void;

Parameters

  • old_width - (обязательный) number - начальная ширина сетки
  • new_width - (обязательный) number - новая ширина сетки

Example

gantt.attachEvent("onGridResize", function(old_width, new_width){
if(!message){
message = gantt.message({expire:-1,
text:"Grid is now <b id='width_placeholder'></b><b>px</b> width"});
}
document.getElementById("width_placeholder").innerText = new_width;
});
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.