getSelection
getSelection: UnifiedSelectionState
Returns current selection. This is a different function each time selection at selectionLevel
changes. The
returned KeySet
object exposes global data and is mutable. If you need to pass information about the current
selection across React components, prefer UnifiedSelectionState over KeySet
objects.
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.