@messaia/cdk 22.0.1-rc.8 → 22.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -40,6 +40,22 @@ Once the project is built, you can publish your library by following these steps
40
40
  npm publish
41
41
  ```
42
42
 
43
+ ## Table row selection
44
+
45
+ `TableDataSource` matches selected rows by their non-null `id`, so selections remain
46
+ checked when server-side pagination or `reload(false)` returns new row instances.
47
+ IDs must be unique and stable across pages. Rows without an ID use reference equality.
48
+ Toggling a reloaded row removes its existing selection instead of adding a duplicate.
49
+ `reload()` still clears selection by default.
50
+
51
+ Set `@Table({ rememberSelection: true })` on a row model to restore checked rows
52
+ when returning to server-backed lists for that model. This is off by default.
53
+ `GenericListComponent` uses its existing list configuration scope; standalone
54
+ `vd-dynamic-table` instances with `[classType]` use their route and data source.
55
+ For multiple standalone tables that share the same model and scope on one page,
56
+ use distinct `[rememberSelectionKey]` overrides. Only rows with IDs are remembered,
57
+ and the selection is kept in memory until it is cleared or the app is reloaded.
58
+
43
59
  ## Running unit tests
44
60
 
45
61
  To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: