Open ninja511 opened 3 years ago
The existing table component was not built to accommodate a lot of the use cases we are encountering today. It's still sufficient for simple tabular data, but it struggles to handle pinned rows/columns, data grid interactions, nested rows, multi-level headers ...
To fix that I propose:
TableRow
class. With a real TableRow
it becomes reasonable to nest rows just by passing in data and another child TableRow
.
TableRow
class should track it's expanded/collapsed/selected state and expose it as an Observable. Then the parent model can collect these events and re-broadcast them at the top leveltabindex
ing.ai-row
should behave like tr
, ai-td
should behave like td
.
Implementation of the Data table component for Angular - needed by OMS team: https://pages.github.ibm.com/ai-applications/design/components/datatable/overview