Class: GoIFCToolbar

GoIFCToolbar

Class representing a container for managing and displaying toolbars in the GoIFC UI.

new GoIFCToolbar(ui, options)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 16

Creates an instance of GoIFCToolbar.

Name Type Default Description
ui GoIFCUI

The GoIFCUI instance to be associated with this toolbar.

options ToolbarsContainerOptions { position: "left" } optional

Options for positioning the toolbars container.

Methods

addChild(button)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 93

Adds a button to the toolbar.

Name Type Description
button IFCButton

The button to be added.

Throws:

If the button container is not defined.

Type
Error

getActionsButtons(){ActionsButtons}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 50

Gets the ActionsButtons instance from the toolbar.

Returns:
Type Description
ActionsButtons The ActionsButtons instance.

getChildrens(){Map.<string, IFCButton>}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 84

Gets the map of toolbar buttons.

Returns:
Type Description
Map.<string, IFCButton> The map of toolbar buttons.

getContainer(){HTMLDivElement|null}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 72

Gets the container element for the toolbar.

Returns:
Type Description
HTMLDivElement | null The toolbar container element.

getFitToElementButton(){FitToElementButton}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 64

Gets the FitToElementButton instance from the toolbar.

Returns:
Type Description
FitToElementButton The FitToElementButton instance.

getOptions(){ToolbarsContainerOptions}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 126

Gets the options for positioning the toolbars container.

Returns:
Type Description
ToolbarsContainerOptions The toolbar container options.

getUI(){GoIFCUI}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 118

Gets the GoIFCUI instance associated with this toolbar.

Returns:
Type Description
GoIFCUI The GoIFCUI instance.

removeChild(idChild)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/toolbar/index.ts, line 106

Removes a button from the toolbar by its ID.

Name Type Description
idChild string

The ID of the button to be removed.