Open renato-b opened 5 years ago
Hi, @renato-b ,
This is not such easy like add hide and show in the table. The data structure is totally different. It is like a List tree
instead of a table. We are making common components for all the teams. We might spend triple time than you to make sure all scenario are working perfect.
I think you can make your own table or list to show this. You can reuse pager and some css in the table.
https://github.com/Tradeshift/tradeshift-ui/blob/master/src/runtime/less/ts-tables.less
That would be faster to implement.
I am having hard time to implement a table with rows that can be collapsed. I have to either grab the HTML
tr
element from the DOM and set thets-hidden
class or insert/remove the rows to collapse and re-render the table.It would make things easier if it was possible to programmatically set the attribute visible to rows as it is currently possible for columns.
Having that feature I could simply hide the rows with few clean lines of code:
Alternatively it would be handy to be able to have a reference to the
tr
element and set the classts-hidden
Table with collapsable rows are useful to group items that correlate together like invoices, credit notes and short payments.
Cheers, Renato