geoview-core
    Preparing search index...

    Class ModalApi

    Class used to handle creating a new modal

    ModalApi

    Index

    Constructors

    Properties

    modals: Record<string, TypeModalProps> = {}

    Methods

    • Function that close the modal by the id specified

      Parameters

      • modalId: string

        The id of the modal that is to be deleted

      Returns void

    • Function that creates the modal

      Parameters

      Returns string | undefined

    • Function that deletes the modal by the id specified

      Parameters

      • modalId: string

        The id of the modal that is to be deleted

      Returns void

    • Unregisters a modal closed event handler.

      Parameters

      • callback: ModalClosedDelegate

        The callback to stop being called whenever the event is emitted

      Returns void

    • Unregisters a modal opened an event handler.

      Parameters

      • callback: ModalOpenedDelegate

        The callback to stop being called whenever the event is emitted

      Returns void

    • Registers a modal closed event handler.

      Parameters

      • callback: ModalClosedDelegate

        The callback to be executed whenever the event is emitted

      Returns void

    • Registers a modal opened event handler.

      Parameters

      • callback: ModalOpenedDelegate

        The callback to be executed whenever the event is emitted

      Returns void

    • Function that open the modal by the id specified

      Parameters

      • modalId: string

        The id of the modal that is to be deleted

      Returns void