question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v7] Column toggle visibility feature

See original GitHub issue

To add column show/hide functionality(via user actions), there seems to be following ways :-

  1. Add a new hook, which have default state, detach current show attribute from columns and derive it from plugin’s default state and add needed column methods.

  2. Keep the current data structure, add a new method to column for toggling visibility, but will require one more property apart from isVisible and show.

  3. Manage the state outside of react-table, by updating the columns config itself.

@tannerlinsley , what are your thoughts on it and what would you prefer ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
gargrohcommented, Nov 21, 2019

Can you think of any reason why a dev would want the show option and not just want to use a hypothetical column visibility plugin?

For features like providing toggling functionality at user level, something like given in snapshot on this link https://github.com/tannerlinsley/react-table/issues/1649#issue-525806262

0reactions
tannerlinsleycommented, Dec 5, 2019

Tracking all of this in #1700

Read more comments on GitHub >

github_iconTop Results From Across the Web

[v7] Column toggle visibility feature · Issue #1600 - GitHub
Keep the current data structure, add a new method to column for toggling visibility, but will require one more property apart from isVisible...
Read more >
React Table Column Visibility Example | TanStack Table Docs
An example showing how to implement Column Visibility in React Table.
Read more >
Toggling column visibility removes table header title
Toggling column visibility removes table header title. Hi,. I am using KTDatatables Metronic v7 and want to toggle column visibility.
Read more >
Since Upgrade to Vcenter 7.0 U3 no Option to Show...
Hi , Is this an Bug from Vcenter U3 that we are not able to Show or Hide Columns in the Vcenter VM...
Read more >
Enabling the table columns visibility toggle - Pega
Enabling the table columns visibility toggle · In the Section form, click a header of a column, and then click the View properties...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found