Menu

Simplicite.UI.View. Menu

Description:
  • Main menu rendering

Methods

accordion()

Description:
  • Accordion effect

filterMenu()

Description:
  • Filter menu

focus()

Description:
  • Focus the last selected item or first item

getMenu()

Description:
  • Main menu

hover(b)

Description:
  • hover effect when minified

Parameters:
Name Type Description
b boolean

false to remove effect

init()

Description:
  • Init the main menu, use the ui.clickMenu handler

isMenuMax()

Description:
  • Is menu maximized on the left side ?

isMenuMin()

Description:
  • Is menu minimized on the left side ?

keydown()

Description:
  • Menu navigation with Arrow keys

Description:
  • Maximize the menu on the left side

    • displays domain icons and labels
    • accordion sub-menus
    Description:
    • Minimize the menu on the left side

      • displays only domain icons
      • popup the sub-menus over the screen
      Description:
      • Toggle the main menu on the left side

      Parameters:
      Name Type Description
      e Object

      optional event

      sign number

      positive:show, negative:hide

      selectMenu()

      Description:
      • Select one menu item

      startRefreshStatus()

      Description:
      • Start a timer to update enum counters

      stopRefreshStatus()

      Description:
      • Stop the timer to update visible status counters

      Description:
      • Show a sub-menu

      Parameters:
      Name Type Description
      m jQuery

      menu item (li element with .sub-menu child)

      Description:
      • Hide a sub-menu

      Parameters:
      Name Type Description
      m jQuery

      menu item (li element with .sub-menu child)

      updateStatusBadge(object, field, code)

      Description:
      • Update the visible enum counter

      Parameters:
      Name Type Description
      object string | jquery

      object name or menu item

      field string

      enum field name

      code string

      enum code

      updateStatusBadges(m)

      Description:
      • Update all status and enum counters of a given menu

      Parameters:
      Name Type Description
      m jQuery

      sub menu