Skip to content

initialHiddenColumnIds not working #213

Description

@eonward

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions