Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Column visibility - hidden by default #6069

Unanswered
scape76 asked this question in Q&A
Discussion options

 column.getIsVisible = () => {
 const childColumns = column.columns
 return (
 (childColumns.length
 ? childColumns.some(c => c.getIsVisible())
 : table.getState().columnVisibility?.[column.id]) ?? true
 )
 }

This is the api that defines whether column is visible.
I want to make all the columns hidden by default, meaning it will be visible only there is an attribute with value 'true' in provided columnVisibility object. Is there a way to override this api?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /