API ReferenceGlobalsSelectionHandler

# Class: SelectionHandler

# Hierarchy

# Index

# Methods

# Methods

# addEventListener

addEventListener(eventName: number, callback: ListenerFunctionSelectionHandlerEvent›, scope: any): void

Inherited from EventDispatcher.addEventListener

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:28

Parameters:

Name Type
eventName number
callback ListenerFunctionSelectionHandlerEvent
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


# dispatchEvent

dispatchEvent(eventName: number, arg?: SelectionHandlerEvent): void

Inherited from EventDispatcher.dispatchEvent

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:32

Parameters:

Name Type
eventName number
arg? SelectionHandlerEvent

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: ListenerFunctionSelectionHandlerEvent›): void

Inherited from EventDispatcher.removeEventListener

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:48

Parameters:

Name Type
eventName number
fun ListenerFunctionSelectionHandlerEvent

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