Skip to content

Commit 2043d80

Browse files
Table, Multi-select: Add note to docs (HDS-4273) (#2667)
1 parent 116fac4 commit 2043d80

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

website/docs/components/table/table/partials/code/how-to-use.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,13 @@ Add `isSelectable=true` to create a multi-select table. The `onSelectionChange`
576576

577577
#### Multi-select table using a model
578578

579-
This is a simple example of a table with multi-selection. Notice the `@selectionKey` argument provided to the rows, used by the `@onSelectionChange` callback to provide the list of selected/deselected rows as argument(s) for the invoked function:
579+
This is a simple example of a table with multi-selection. Notice the `@selectionKey` argument provided to the rows, used by the `@onSelectionChange` callback to provide the list of selected/deselected rows as argument(s) for the invoked function.
580+
581+
!!! Info
582+
583+
If you want the state of the checkboxes to persist after the model updates, you will need to provide an `identityKey` value.
584+
585+
!!!
580586

581587
```handlebars
582588
<Hds::Table

0 commit comments

Comments
 (0)