React-virtualized: support column resize

Created on 23 Nov 2017  Â·  3Comments  Â·  Source: bvaughn/react-virtualized

can Multigrid support column resize?

question

Most helpful comment

Update: I've also created a basic example of resizable Table columns here https://codesandbox.io/s/j30k46l7xw

All 3 comments

Not as part of the built-in library. You can add this yourself using a library like react-draggable.

You can see a row-resize demo here and source for it here.

Update: I've also created a basic example of resizable Table columns here https://codesandbox.io/s/j30k46l7xw

@bvaughn hi! I copy your code and when I use the headerRenderer={this.headerRenderer} in Colunm, It got an error:

Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of Table.

When I commented it out, it worked, Can you tell me the reason, thank you!

Was this page helpful?
0 / 5 - 0 ratings