Options
All
  • Public
  • Public/Protected
  • All
Menu

Module view/AppBar

Variables

Functions

Variables

Const useStyles

useStyles: function = makeStyles(theme => ({title: {flexGrow: 1,textAlign: "center",},avatar: {borderStyle: "solid",borderWidth: "2px",borderRadius: "4px",borderColor: theme.palette.secondary.light,}}))

CSS style hook for AppBar component

Type declaration

    • (props?: any): ClassNameMap<ClassKey>
    • Parameters

      • Optional props: any

      Returns ClassNameMap<ClassKey>

Functions

Const AppBar

  • AppBar(): Element
  • React Component representing custom AppBar, with main application menu, title, graphics quality switch and logged user identicon.

    Returns Element

Const createItem

  • createItem(title: string, close: function, action: function, type?: "popup" | "link" | "action" | undefined, disabled?: undefined | function): Element
  • Helper function for creating MenuItems for main application menu.

    Parameters

    • title: string

      Text which should be shown on the item

    • close: function

      Function which closes the whole menu

        • (): void
        • Returns void

    • action: function

      Function representing the action, which should be executed when the item is clicked

        • (): void
        • Returns void

    • Optional type: "popup" | "link" | "action" | undefined

      Type of action of this menu item, which determines item's icon

    • Optional disabled: undefined | function

      Function which should return true if this menu item should be disabled

    Returns Element

    Requested MenuItem with given parameters

Generated using TypeDoc