-
Notifications
You must be signed in to change notification settings - Fork 431
Closed
Labels
Description
In the previous version of your component, if I did not want to render a column, I would simply do
{this.state.someCondition && <TableHeaderColumn dataField="someField">Some Caption</TableHeaderColumn>}
I thought I would just use the new hidden
property in the columns array to accomplish this same thing:
...
{ dataField: "someField", text: "Some Caption", hidden:!this.state.someCondition }
...
This 'works', but the column is still rendered to the browser - is just wrapped with display:none
. Can you just not render hidden columns at all??
Without the above, I could accomplish with "if statements" around push
, etc.