I'm using an EuiInMemoryTable and wanted to allow a parent component to cancel all selections in the nested table. At the moment I can replace the array I'm maintaining in the parent component and updating on the table's onSelectionChange prop, but I can't tell the table to deselect items via props.
It would be useful to be able to tell a table to update the selected items:
render() {
const { items } = this.state;
return <EuiInMemoryTable items={items} selectedItems={[]} />;
}
We can presently allow the user to simply use the table's top selection box to deselect all items, but in some cases we may want to clear the selection automatically.
I'm using an EuiInMemoryTable and wanted to allow a parent component to cancel all selections in the nested table. At the moment I can replace the array I'm maintaining in the parent component and updating on the table's
onSelectionChangeprop, but I can't tell the table to deselect items via props.It would be useful to be able to tell a table to update the selected items:
We can presently allow the user to simply use the table's top selection box to deselect all items, but in some cases we may want to clear the selection automatically.