TableFilter icon indicating copy to clipboard operation
TableFilter copied to clipboard

Column visibility 'at start' overrides state: columns_visibility - intended?

Open SafetyFast opened this issue 3 years ago • 0 comments

State (persistence) settings for column visibility are ignored for columns hidden 'at_start' by colsVisibility settings.

  • To reproduce *
  1. Create a table with a hidden column 'x' (via the 'at_start' colsVisibility setting) and 'state: [columns_visibility: true]'.
  2. Load the page; the column is indeed hidden.
  3. Use the 'columns' drop-down to make column 'x' visible.
  4. Reload the page.
  • Expected result * Column 'x' remains visible; the state/persistence settings take precedence over the colsVisibility 'at_start' setting.

  • Observed result * Column 'x' is hidden; the colsVisibility settings take precedence over the persistence (state) setting.

My guess is that this is the intended behavior, but I wanted to confirm that. If so, is there an option I've missed that would change that behavior?

Thanks for TableFilter, it is really a great tool and saved me a LOT of effort.

SafetyFast avatar May 21 '21 20:05 SafetyFast