There should be an additional parameter in the ColumnSpec constructor that defines whether the column should be resizable, and it should be false by default.
Make the right edge of the column header draggable, so that it can be resized. Since the width of the column is set externally, by ColumnSpec, resizing should emit an event with the new width, and it's up to the user to correctly update data on their end.
The implementation is straightforward when it comes the Fixed width columns, however, there are multiple ways to implement the resizing of WrapContent and Flex columns:
- Option 1: do not allow those columns to be resizable (even when the parameter is set to true), but possibly give a warning
- Option 2: do allow the resizing of those columns, but it is up to the user to then convert the column into a
Fixed width column, in order to make it possible to set a specific width to it
There should be an additional parameter in the ColumnSpec constructor that defines whether the column should be resizable, and it should be false by default.
Make the right edge of the column header draggable, so that it can be resized. Since the width of the column is set externally, by
ColumnSpec, resizing should emit an event with the new width, and it's up to the user to correctly update data on their end.The implementation is straightforward when it comes the
Fixedwidth columns, however, there are multiple ways to implement the resizing ofWrapContentandFlexcolumns:Fixedwidth column, in order to make it possible to set a specific width to it