Skip to content

Commit

Permalink
HDS-4273 Add note to docs to set identityKey value to persist checkbo…
Browse files Browse the repository at this point in the history
…x state
  • Loading branch information
KristinLBradley committed Jan 24, 2025
1 parent 116fac4 commit 1e87c2f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,9 @@ Add `isSelectable=true` to create a multi-select table. The `onSelectionChange`

#### Multi-select table using a model

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:
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.

**Note:** If you want the state of the checkboxes to persist after the model updates, you will need to provide an `identityKey` value.

```handlebars
<Hds::Table
Expand Down

0 comments on commit 1e87c2f

Please sign in to comment.