Perspective How to Hide Column on a Table

How does one hide a column on a table in perspective?

Lets say I want to hide id.

By default, the Table will do its best to display your data without any input from you. If you want to start hiding columns, you have to explicitly state which columns you DO want shown.

If you want to hide the id column, for example, then you would add a single entry into Table.props.columns and set the field property of this new column to "product_name". This would result in a table which renders only one column, and that column will get its data from the product_name key for each row.

Thank you.

1 Like