Zum Hauptinhalt springen

onColumnResize

Info

Diese Funktionalität ist nur in der PRO-Edition verfügbar.

Description

Wird ausgelöst, wenn der Benutzer den Rand der Spalte zieht, um die Spaltenbreite anzupassen

onColumnResize: (index: number, column: GridColumn, new_width: number) => void;

Parameters

  • index - (erforderlich) Zahl - der Spaltenindex
  • column - (erforderlich) GridColumn - das Spaltenobjekt
  • new_width - (erforderlich) Zahl - die neue Spaltenbreite

Example

gantt.attachEvent("onColumnResize", function(index, column, new_width){
if(!message){
message = gantt.message({expire:-1,
text:`<b>${gantt.locale.labels["column_"+column.name]}
</b> 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.