Tree.removeSelection method
Tree › removeSelection
Unofficial
Run an action on each item Tree.getSelectedItems returns, one at a time, deselecting every item it reports as removed and then moving focus to the nearest item that was not part of the selection.Signature:
removeSelection(callback: (item: T) => Promise<boolean>): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| callback | (item: T) => Promise<boolean> | The action to run on an item; resolves to whether the item was removed. |
Returns: Promise<void> — A promise that resolves when the action has run on every item.