JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Table › How can I hide a specific column with CSS only? › Reply To: How can I hide a specific column with CSS only?
February 11, 2021 at 6:11 am
#101475
admin
Keymaster
Hi,
It seems that in 9.1.0, the column property is “hidden”, not “visible. You can use it like that:
columns: [ { label: 'id', hidden: true, dataField: 'id', dataType: 'number' }, { label: 'Product Name', dataField: 'productName', dataType: 'string' }, { label: 'Quantity', dataField: 'quantity', dataType: 'number' }, { label: 'Price', dataField: 'price', dataType: 'number' }, { label: 'Date Purchased', dataField: 'date', dataType: 'date' } ]
After the next release, change it to “visible” and set it to false. “hidden” will be deprecated.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/