Class: GoIFCModal

GoIFCModal

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

new GoIFCModal(goIFCUI)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-modal/index.ts, line 24

Constructor for the GoIFCModal class.

Name Type Description
goIFCUI GoIFCUI

The GoIFCUI instance to be associated with this modal component.

Extends

  • undefined

Methods

addModalContent(content)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-modal/index.ts, line 115

Adds content to the modal dialog.

Name Type Description
content HTMLElement

The content to be added to the modal dialog.

changeModalVisibility(visibility)

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-modal/index.ts, line 136

Changes the visibility of the modal dialog.

Name Type Description
visibility boolean

Whether the modal should be visible or not.

getId(){string}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-modal/index.ts, line 63

Retrieves the unique identifier for the modal component.

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

modalIsVisible(){boolean}

Interactions/IFC/interact/GoIFCComponents/subClasses/GoIFCUI/shared/go-ifc-modal/index.ts, line 150

Checks if the modal dialog is currently visible.

Returns:
Type Description
boolean True if the modal is visible, false otherwise.