@stereograph/teiaviewer - v18.6.0-dev
    Preparing search index...

    Interface ToolbarItemContext

    interface ToolbarItemContext {
        closeAllMenus: () => void;
        closeParentMenu: () => void;
        container: "toolbar" | "dock";
        isInsideMenu: boolean;
    }
    Index

    Properties

    closeAllMenus: () => void

    Close all opened menus

    Type declaration

      • (): void
      • Returns void

    closeParentMenu: () => void

    Closes the parent menu from the child item. (If applicable, otherwise, does nothing).

    Type declaration

      • (): void
      • Returns void

    container: "toolbar" | "dock"

    Indicates if the item is inside a dock or the toolbar

    isInsideMenu: boolean

    Indicates if an item in inside a menu