Hiding Columns
There are three ways in which a column can be hidden.
- Hidden from being displayed in table
- using the
column.hidden
prop
- using the
- Hidden from the Columns Button (per column setting)
- using the
column.hiddenByColumnsButton
prop
- using the
- Hidden from the Columns Button ("global" setting for all columns)
column.hidden
and column.hiddenByColumnsButton
are not coupled whatsoever.
#
Help! I want to...#
Hide from table and columns button- Set
column.hidden
totrue
ANDcolumn.hiddenByColumnsButton
totrue
(effects single column)
OR
- Set
column.hidden
totrue
AND override theMTableToolbar
component, setting propcolumnsHiddenInColumnsButton
totrue
(which effects all columns)
#
Only hide from table, but show in columns button- Just set
column.hidden
totrue
#
Show in table, but not in columns button- Just set
column.hiddenByColumnsButton
totrue
(for single column) OR override theMTableToolbar
component, setting propcolumnsHiddenInColumnsButton
totrue
(which effects all columns)
#
Live Demonote
See here for more on the GLOBAL_VARS
we use in our demos
Live Editor
Result