You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
The forge TableComponent hideColumn and showColumn methods don't update the hidden property of the columnConfiguration
To Reproduce:
Steps to reproduce the behavior:
Go to the forge demo app table page
In pages/table.ts set the hidden property of one columnConfiguration to true
Add a "show" button, "hide" button, and "log" button to table.ejs
Add event listeners to each button to show the hidden column, hide a visible column, and console.log(table.columnConfigurations respectively
Hit each button
In the console, the shown column has a hidden: true and the hidden column has hidden undefined.
Expected behavior:
The hideColumn and showColumn methods should update the columnConfigurationhidden properties.
Please complete the following information:
Forge version: 2.24.1
I have searched existing issues before creating this report? Y
Browser: All
Platform: All
OS: All
Additional context:
You often use the hidden value of a columnConfiguration to filter out hidden columns in cases like using the ITableFilterEventDatacolumnIndex value to get the matching visible columnConfiguration. The event data columnIndex correctly updates both when columns are hidden/shown by setting columnConfiguration.hidden manually or via hideColumn/showColumn, but there's no way to match columnIndex to the visible column in the latter case because the hidden property isn't updated.
The text was updated successfully, but these errors were encountered:
eliganemtyler
changed the title
[table] hideColumn and showColumn don't add hidden property to column configuration
[table] hideColumn and showColumn don't update hidden property in column configuration
Jun 7, 2024
Describe the bug:
The forge TableComponent hideColumn and showColumn methods don't update the hidden property of the columnConfiguration
To Reproduce:
Steps to reproduce the behavior:
pages/table.ts
set thehidden
property of onecolumnConfiguration
to truetable.ejs
console.log(table.columnConfigurations
respectivelyhidden: true
and the hidden column hashidden
undefined.Expected behavior:
The
hideColumn
andshowColumn
methods should update thecolumnConfiguration
hidden
properties.Please complete the following information:
Additional context:
You often use the
hidden
value of acolumnConfiguration
to filter out hidden columns in cases like using theITableFilterEventData
columnIndex
value to get the matching visiblecolumnConfiguration
. The event datacolumnIndex
correctly updates both when columns are hidden/shown by settingcolumnConfiguration.hidden
manually or viahideColumn
/showColumn
, but there's no way to matchcolumnIndex
to the visible column in the latter case because thehidden
property isn't updated.The text was updated successfully, but these errors were encountered: