geoview-core
    Preparing search index...

    Class AppBarApi

    Class to manage buttons on the app-bar

    Index

    Constructors

    • Instantiates an AppBarApi class.

      Parameters

      • mapId: string

        The map id this AppBarApi belongs to

      Returns AppBarApi

    Properties

    buttons: Record<string, TypeButtonPanel> = {}
    mapId: string

    Methods

    • Selects a tab by id and tab group

      Returns ActiveAppBarTabType

      The active app bar tab info.

    • Gets a button panel from the app-bar by using it's id

      Parameters

      • buttonPanelId: string

        The id of the button panel to get

      Returns TypeButtonPanel | null

      The button panel

    • Unregisters an event handler for AppBar created events.

      Parameters

      • callback: AppBarCreatedDelegate

        The callback to stop being called whenever the event is emitted.

      Returns void

    • Unregisters an event handler for AppBar removed events.

      Parameters

      • callback: AppBarRemovedDelegate

        The callback to stop being called whenever the event is emitted.

      Returns void

    • Registers an event handler for AppBar created events.

      Parameters

      • callback: AppBarCreatedDelegate

        The callback to be executed whenever the event is emitted.

      Returns void

    • Registers an event handler for AppBar removed events.

      Parameters

      • callback: AppBarRemovedDelegate

        The callback to be executed whenever the event is emitted.

      Returns void

    • Removes an app-bar panel using an id

      Parameters

      • buttonPanelId: string

        The id of the panel to remove

      Returns void

    • Selects a tab by id

      Parameters

      • tabId: string

        The id of the tab to be selected

      • open: boolean = true

        Open (true) or closed (false) panel: default = true

      • isFocusTrapped: boolean = true

      Returns void