In the config object passed to addHiddenColumns, setting initialHiddenColumnIds to an array of column id's should result in the specified columns to be hidden by default.
I wasn't able to get this functionality working in my application or the REPL.
To reproduce, go to the Kitchen Sink REPL and add the following:
const table = createTable(data, {
//...
hideColumns: addHiddenColumns({
initialHiddenColumnIds: ["age"]
}),
//...
});
I'd expect the age column to be hidden by the time the component mounts. Any thoughts?
Update:
See @moalamri 's comment below for workaround!
In the config object passed to
addHiddenColumns, settinginitialHiddenColumnIdsto an array of column id's should result in the specified columns to be hidden by default.I wasn't able to get this functionality working in my application or the REPL.
To reproduce, go to the Kitchen Sink REPL and add the following:
I'd expect the age column to be hidden by the time the component mounts. Any thoughts?
Update:
See @moalamri 's comment below for workaround!