## GateMenuItem(type, contextMenu)

Menu item that has a custom click callback function that adds a Gate of the specified type to the App

#### new GateMenuItem(type, contextMenu)
`modules/ui/ContextMenu.js`, `line 151`

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `type` | string | type of the gate Gate (and, or, ...)
  `contextMenu` | ContextMenu | instance of the ContextMenu that this item belongs to

### Extends

- ContextMenuItem

### Members

#### $el :jQuery.element
`modules/ui/ContextMenu.js`, `line 31`

  jQuery element representing DOM content of this menu item

  Overrides:
    - ContextMenuItem#$el

#### $submenu :jQuery.element
`modules/ui/ContextMenu.js`, `line 47`

  jQuery element containing the submenu (or undefined, if item has no subitems)

  Overrides:
    - ContextMenuItem#$submenu

#### appInstance :App
`modules/ui/ContextMenu.js`, `line 90`

  instance of App this menu belongs to

  Overrides:
    - ContextMenuItem#appInstance

#### contextMenu :ContextMenu
`modules/ui/ContextMenu.js`, `line 25`

  instance of the ContextMenu this item belongs to

  Overrides:
    - ContextMenuItem#contextMenu

#### itemCount :Number
`modules/ui/ContextMenu.js`, `line 53`

  submenu item counter

  Overrides:
    - ContextMenuItem#itemCount

#### jQuery
`modules/ui/ContextMenu.js`, `line 138`

  get jQuery element of this menu item

  Overrides:
    - ContextMenuItem#jQuery

#### length
`modules/ui/ContextMenu.js`, `line 98`

  number of items in the submenu

  Overrides:
    - ContextMenuItem#length

#### text :string
`modules/ui/ContextMenu.js`, `line 19`

  text on the button

  Overrides:
    - ContextMenuItem#text

### Methods

#### addClass(cls)
`modules/ui/ContextMenu.js`, `line 106`

  add a CSS class to this item

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `cls` | string | [description]

  Overrides:
    - ContextMenuItem#addClass

#### appendItem(item)
`modules/ui/ContextMenu.js`, `line 115`

  append a nested ContextMenuItem to this item

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `item` | ContextMenuItem | item that will be appended

  Overrides:
    - ContextMenuItem#appendItem