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 Spaltenindexcolumn- (erforderlich) GridColumn - das Spaltenobjektnew_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
});
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.