onColumnResizeEnd

当用户拖动列边界调整宽度完成时触发

boolean onColumnResizeEnd(number index,GridColumn column,number new_width);
indexnumber列的索引
columnGridColumn列对象本身
new_widthnumber列的新宽度
boolean决定默认事件操作是否继续执行(true)或被阻止(false

Available only in PRO Edition

Example

// 返回 false 取消调整大小操作
gantt.attachEvent("onColumnResizeEnd", function(index, column, new_width){
    gantt.message.hide(message);
    message = null;
    gantt.message(`列 <b>${gantt.locale.labels["column_"+column.name]}
    </b> 已调整为宽度 ${new_width}px`);
    return true;
});

Related samples

Details

此功能仅限于 PRO 版本。

此事件可以被阻止。返回 false 会阻止列宽度的调整。

See also
Back to top