resize-column
Description
Fires when resizing a columnUsage
"resize-column": ({
id: string | number,
width?: number,
auto?: boolean | "data" | "header",
maxRows?: number,
inProgress?: boolean,
eventSource?: string,
}) => boolean | void;
Parameters
The callback of the action takes an object with the following parameters:
id- (required) the ID of a column that is resizedwidth- (optional) the width of a column in pixelsauto- (optional) autoresizing with the following options:- true/false: enables/disables autoresizing when a column adjusts to its content
- "data": adjusts column width to the data size
- "header": adjusts column width to the header
maxRows- (optional) the number of rows that should be processed to adjust the column width (if not set) to the row cell with the longest textinProgress- (optional) defines if the process of resizing is still in progress (true) or completed (false)eventSource- (optional) the name of the Grid action that triggeredresize-column
Returning false from the event handler will block resizing columns.