PF4 react-table colums (title) to support jsx (also in collapsed view)
See original GitHub issuePretty pretty please, would be great if pf-table didn’t hate this
this kinda thing
const [cols] = useState([
{ title: intl.formatMessage(messages.rulesTableColumnTitleRule), transforms: [sortable] },
{ title: intl.formatMessage(messages.rulesTableColumnTitleAdded), transforms: [sortable, cellWidth(15)] },
{ title: intl.formatMessage(messages.rulesTableColumnTitleTotalrisk), transforms: [sortable] },
{ title: intl.formatMessage(messages.rulesTableColumnTitleSystems), transforms: [sortable] },
{ title: <><AnsibeTowerIcon size='md' /> {intl.formatMessage(messages.rulesTableColumnTitleAnsible)}</>, transforms: [sortable] }
]);
throws this warning (it doesn’t enjoy the <><AnsibeTowerIcon size='md' />...</>
also, it doesn’t collapse very well, displays fallback rather than the column name

what it oughta look like

Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Expanded row getting collapsed on state update on react-table
on selecting or unselecting the checkbox (state update) the expanded row is getting collapsed please help me in solving this. I have tried...
Read more >How to use the react-table.ReactTableDefaults.column ... - Snyk
To help you get started, we've selected a few react-table.ReactTableDefaults.column examples, based on popular ways it is used in public projects.
Read more >React Table: A complete tutorial with examples
In this React table tutorial, we'll show you how to implemenet your own data table in React using react-table, complete with examples.
Read more >PatternFly 4 • Release notes
PatternFly is Red Hat's open source design system. It consists of components, documentation, and code for building enterprise applications at scale.
Read more >React Table: A Complete Guide - Hygraph
We can use react-tables for basic features such as sorting, filtering (global and column), pagination, and lots more.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@AllenBW sounds good! Let me know if you want to brainstorm or if I can help out in any way.
@AllenBW the problem with this approach and how the table is configured currently is that we use the
data-label
attribute on each cell to generate the title/header via CSS on the left of each cell in the mobile/responsive layout. We do that by usingcontent: attr(data-label);
in the::before
pseudo element of each cell, and unfortunately thecontent
property value isn’t parsed by the browser, so it won’t render HTML in the document tree.To be able to display the content of the table columns from the default table view (desktop) to the grid layout view (responsive/mobile), I think we would need to consider a different approach.