- This topic has 3 replies, 2 voices, and was last updated 1 year, 2 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Table › Table hiding columns
Tagged: hide table columns, table
I want to create a smart table in wich, pressing a button or defining a variable i can hide or show some columns.
I saw the column menu example as well as the change columns example but I didn’t understand the trick.
Could You provide an example ?
Tks
Hi,
Each column has a ‘visible’ property. If you want to hide it, you can use code like this: table.columns[0].visible = false;
Regards,
Markov
Smart UI Team
https://www.htmlelements.com/
Tks
it works also if I wrap an existing standard html table ?
Hi,
In order to hide a column, the smart-table instance should be used i.e after smart-table is created either by creating a new table or wrapping an existing table, you can use the smart-table API.
Regards,
Markov
Smart UI Team
https://www.htmlelements.com/