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: 06 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.