Skip to content

Hidden columns still render #237

@waynebrantley

Description

@waynebrantley

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions