material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Table columnOrder prop is optional, if not passed then table body doesn't render

Open isilweo opened this issue 11 years ago • 2 comments

columnOrder property in Table is optional but if property is not passed table is not rendered at all. Right now body of table is created using _orderColumnBasedData function. First line of this function is

  _orderColumnBasedData(columnBasedData, cb) {
    // If we do not have a columnOrder, return.
    if (this.props.columnOrder === undefined) return;

so nothing is returned. Either change columnOrder to required or fix rendering so it will be possible without passing columnOrder prop.

isilweo avatar Jul 28 '15 09:07 isilweo

@isilweo Thanks for the feedback. There is a new version of the table in branch 0.11 that is composable as opposed to passing props around to build your table. Check it out and let me know what you think!

jkruder avatar Jul 28 '15 22:07 jkruder

@isilweo Table is all new from when this issue was opened. I'm closing this.

If you find any issues with today's Table, let us know!

shaurya947 avatar Nov 20 '15 19:11 shaurya947