API Reference > ui-components > Tree > TreeEvents > onSelectionReplaced onSelectionReplaced MethodOptional Called when tree selection is replaced. If Subscription is returned it can be used to stop event handling by calling '.unsubscribe()'. onSelectionReplaced(event: TreeSelectionReplacementEvent): Subscription | undefined Parameter Type Description event TreeSelectionReplacementEvent Returns - Subscription | undefined Defined in ui/components/src/ui-components/tree/controlled/TreeEvents.ts Line 43 Last Updated: 13 June, 2024