Type alias NavbarCustomButton

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

Definition of a custom navbar button

Type declaration

  • Optional className?: string

    CSS class added to the button

  • Optional collapsable?: boolean

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

    Default

    true
    
  • content: string | NavbarButtonElement

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

  • Optional disabled?: boolean

    initial state of the button

    Default

    false
    
  • Optional id?: string

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

  • Optional onClick?: ((viewer) => void)
      • (viewer): void
      • Function called when the button is clicked

        Parameters

        Returns void

  • Optional tabbable?: boolean

    if the button is accessible with the keyboard

    Default

    true
    
  • Optional title?: string

    Tooltip displayed when the mouse is over the button

  • Optional visible?: boolean

    initial visibility of the button

    Default

    true
    

Generated using TypeDoc