Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column width controllers #1

Open
andreypopp opened this issue May 7, 2014 · 0 comments
Open

Column width controllers #1

andreypopp opened this issue May 7, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@andreypopp
Copy link
Contributor

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 andreypopp added this to the 0.1.0 milestone May 7, 2014
@andreypopp andreypopp self-assigned this May 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant