API Reference › Globals › SelectionHandler
# Class: SelectionHandler
# Hierarchy
EventDispatcher‹SelectionHandlerEvent›
↳ SelectionHandler
# Index
# Methods
- addEventListener
- cancelSelection
- check
- disableEvents
- dispatchEvent
- enableEvents
- getSelectedRuntimeComponentIds
- getSelectionMode
- hasSelection
- isSelected
- removeEventListener
- setSelectionMode
# Methods
# addEventListener
▸ addEventListener(eventName
: number, callback
: ListenerFunction‹SelectionHandlerEvent›, scope
: any): void
Inherited from EventDispatcher.addEventListener
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:29
Parameters:
Name | Type |
---|---|
eventName | number |
callback | ListenerFunction‹SelectionHandlerEvent› |
scope | any |
Returns: void
# cancelSelection
▸ cancelSelection(): void
Defined in packages/configurator-core/src/utils/selection-handler.ts:42
Returns: void
# check
▸ check(component
: RoomleComponent): void
Defined in packages/configurator-core/src/utils/selection-handler.ts:33
Parameters:
Name | Type |
---|---|
component | RoomleComponent |
Returns: void
# disableEvents
▸ disableEvents(): void
Inherited from EventDispatcher.disableEvents
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:67
Returns: void
# dispatchEvent
▸ dispatchEvent(eventName
: number, arg?
: SelectionHandlerEvent): void
Inherited from EventDispatcher.dispatchEvent
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:33
Parameters:
Name | Type |
---|---|
eventName | number |
arg? | SelectionHandlerEvent |
Returns: void
# enableEvents
▸ enableEvents(): void
Inherited from EventDispatcher.enableEvents
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:63
Returns: void
# getSelectedRuntimeComponentIds
▸ getSelectedRuntimeComponentIds(): number[]
Defined in packages/configurator-core/src/utils/selection-handler.ts:106
Returns: number[]
# getSelectionMode
▸ getSelectionMode(): SELECTION_MODE
Defined in packages/configurator-core/src/utils/selection-handler.ts:98
Returns: SELECTION_MODE
# hasSelection
▸ hasSelection(): boolean
Defined in packages/configurator-core/src/utils/selection-handler.ts:102
Returns: boolean
# isSelected
▸ isSelected(component
: RoomleComponent): boolean
Defined in packages/configurator-core/src/utils/selection-handler.ts:112
Parameters:
Name | Type |
---|---|
component | RoomleComponent |
Returns: boolean
# removeEventListener
▸ removeEventListener(eventName
: number, fun
: ListenerFunction‹SelectionHandlerEvent›): void
Inherited from EventDispatcher.removeEventListener
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:49
Parameters:
Name | Type |
---|---|
eventName | number |
fun | ListenerFunction‹SelectionHandlerEvent› |
Returns: void
# setSelectionMode
▸ setSelectionMode(mode
: SELECTION_MODE): void
Defined in packages/configurator-core/src/utils/selection-handler.ts:94
Parameters:
Name | Type |
---|---|
mode | SELECTION_MODE |
Returns: void