fleet/frontend/components/TableContainer/DataTable/SoftwareNameCell
Gabriel Hernandez 990206c782
Fix issues around selecting software to install (#23223)
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>
2024-10-25 11:27:44 +01:00
..
_styles.scss UI code cleanup and tests for self service feature (#19487) 2024-06-11 12:56:50 +01:00
index.ts add UI on host details and my device page for installing software feature (#18878) 2024-05-09 22:44:50 +01:00
SoftwareNameCell.tsx Fix issues around selecting software to install (#23223) 2024-10-25 11:27:44 +01:00