본문으로 건너뛰기

onColumnResize

정보

이 기능은 PRO 에디션에서만 사용할 수 있습니다.

Description

사용자가 열의 경계선을 드래그하여 열의 너비를 조정할 때 발생합니다

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

Parameters

  • index - (required) number - 열 인덱스
  • column - (required) GridColumn - 열 객체
  • new_width - (required) number - 새 열 너비

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.