onGridResize
Info
Diese Funktionalität ist nur in der PRO-Edition verfügbar.
Beschreibung
Wird ausgelöst, wenn der Benutzer den Rand des Grids zieht, um das Grid zu skalieren
onGridResize: (old_width: number, new_width: number) => void;
Parameter
old_width- (erforderlich) number - die anfängliche Breite des Gridsnew_width- (erforderlich) number - die neue Breite des Grids
Beispiel
gantt.attachEvent("onGridResize", function(old_width, new_width){
if(!message){
message = gantt.message({expire:-1,
text:"Grid ist jetzt <b id='width_placeholder'></b><b>px</b> breit"});
}
document.getElementById("width_placeholder").innerText = new_width;
});
Related samples
Related API
Related Guides
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.