lowcoder
lowcoder copied to clipboard
[Feat]: Expose data accessors and methods for controlling table column visibility
trafficstars
Is your feature request related to a problem? Please describe. Yes. Currently, the table component does not expose metadata or accessors for hidden column data, nor does it offer a programmatic way to control column visibility.
- Persistence of user preferences: It is not possible to store and reapply the user's column visibility preferences between page visits or sessions.
- Data export limitations: When exporting data from the table, there is no built-in way to filter or include only the currently visible columns, since visibility state is not exposed.
Describe the solution you'd like I would like the table component to expose:
- A property like
table.hiddenColumnsthat returns an array of currently hidden columns. - A method such as
table.hideColumns(columns: string[])to hide columns programmatically. - A complementary method such as
table.showColumns(columns: string[])to update the visible columns explicitly.