[x] Considered the value versus complexity for all users of the library as well as library maintenance
[x] Considered if this can be a storybook or documentation example
There is currently no way to set the initial selected items for the table.
This means if you have a table that has paginationServer, and persistSelectedOnSort | persistSelectedOnPageChange. This will all function as you expect when selecting rows the values are persisted and show correctly.
However, if you close/reopen the component there is no way to pass the initial selected rows. You can only pass your onSelectedChanged callback and the selected function. The selected function only shows the check for visible rows, and therefore calls the onSelectedChanged with the visible rows as selected, rather than knowing previously selected rows exist.
Feature Check list
There is currently no way to set the initial selected items for the table.
This means if you have a table that has paginationServer, and persistSelectedOnSort | persistSelectedOnPageChange. This will all function as you expect when selecting rows the values are persisted and show correctly.
However, if you close/reopen the component there is no way to pass the initial selected rows. You can only pass your onSelectedChanged callback and the selected function. The selected function only shows the check for
visible
rows, and therefore calls the onSelectedChanged with the visible rows as selected, rather than knowing previously selected rows exist.