mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
relates to #23180 fixes up some issues with showing the correct number of selected software to install and also with the table row selection behaviour. We've had to create a couple new props on the `TableContainer` component; one called `defaultSelectedRows` and the other `persistSelectedRows`. `defaultSelectedRows` will allow you to specify the default rows that are selected in the table on the initial render. This is done with an object with the key being the index of the row and the value being a boolean. ```tsx // the first and third rows will be selected in this case <TableContainer defaultSelectedRows={{0: true, 2: true}} ... /> ``` `persistSelectedRows` will allow the row selections to persist across search query changes. This defaults to false. --------- Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| _styles.scss | ||
| index.ts | ||
| SelectSoftwareModal.tsx | ||