react-grid icon indicating copy to clipboard operation
react-grid copied to clipboard

Column width controllers

Open andreypopp opened this issue 11 years ago • 0 comments

Currently column width is computed via functions in ColumnMetrics module. This code is also called by Header and Grid components to implement column resizing functionality.

Instead it would be useful to abstract column width computation and column resizing into a certain implementation of a column width controller. We can also provide the ability to replace a column controller by a different which implement a different strategy to managing column width.

That would also remove column resizing code from core and make core simpler.

To pass a column width controller to a grid one would use the following API:

<Grid columnWidthController={someController} />

if not columnWidthController is passed then Grid would use default implementation with the featureset closer to what the current Grid component provides regarding column width and column resizing.

andreypopp avatar May 07 '14 16:05 andreypopp