Class: GoIFCSideContent

GoIFCSideContent

Class representing a side content UI component within the GoIFCComponents framework. Inherits from GoIFCBaseElement and provides functionality specific to displaying and managing side content panels.

new GoIFCSideContent(GoIFCUI)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-side-content/index.ts, line 22

Constructor for the GoIFCSideContent class.

Name Type Description
GoIFCUI GoIFCUI

The GoIFCUI instance to be associated with this side content component.

Extends

  • undefined

Members

title

Sets the title of the side content panel.

Methods

addContent(content, clearPrevisousContent)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-side-content/index.ts, line 127

Adds content to the side content panel.

Name Type Default Description
content HTMLElement

The content to be added to the side content panel.

clearPrevisousContent boolean true optional

Whether to clear the previous content before adding the new content.

changeSideContentVisibility(visible)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-side-content/index.ts, line 164

Changes the visibility of the side content panel.

Name Type Description
visible boolean

Whether the side content panel should be visible or not.

clearContent()

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-side-content/index.ts, line 62

Clears the content of the side content panel.

getId(){string}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-side-content/index.ts, line 74

Retrieves the unique identifier for the side content component.

Returns:
Type Description
string The unique identifier for the side content component.

onClose(callback)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-side-content/index.ts, line 83

Sets a callback function to be executed when the side content panel is closed.

Name Type Description
callback function

The callback function to be executed on close.