UnifiedSelectionContext Interface
Beta
Interface for accessing and modifying Unified Selection within React components.
Methods
Name | Description | |
---|---|---|
addToSelection(keys: Keys, level?: number): void | Adds keys to current selection. | |
clearSelection(level?: number): void | Removes all keys from current selection. | |
removeFromSelection(keys: Keys, level?: number): void | Removes keys from current selection. | |
replaceSelection(keys: Keys, level?: number): void | Removes all keys from current selection and selects only the specified keys. |
Properties
Name | Type | Description | |
---|---|---|---|
getSelection | UnifiedSelectionState | Returns current selection. | |
imodel | IModelConnection | iModel associated with the selection. | |
selectionLevel | number | Default selection level. |
Defined in
- presentation/components/src/presentation-components/unified-selection/UnifiedSelectionContext.tsx Line 21
Last Updated: 20 June, 2023