Photo Sphere Viewer
    Preparing search index...

    Type Alias NavbarCustomButton

    Definition of a custom navbar button

    type NavbarCustomButton = {
        className?: string;
        collapsable?: boolean;
        content: string | NavbarButtonElement;
        disabled?: boolean;
        id?: string;
        onClick?: (viewer: Viewer) => void;
        tabbable?: boolean;
        title?: string;
        visible?: boolean;
    }
    Index

    Properties

    className?: string

    CSS class added to the button

    collapsable?: boolean

    if the button can be moved to menu when the navbar is too small

    true
    
    content: string | NavbarButtonElement

    Content of the button. Preferably a square image or SVG icon

    disabled?: boolean

    initial state of the button

    false
    
    id?: string

    Unique identifier of the button, usefull when using the Navbar.getButton method

    onClick?: (viewer: Viewer) => void

    Function called when the button is clicked

    tabbable?: boolean

    if the button is accessible with the keyboard

    true
    
    title?: string

    Tooltip displayed when the mouse is over the button If can be a key in the global lang config

    visible?: boolean

    initial visibility of the button

    true