Object Model

Settings
Description

This sample shows how to add and remove an item from the client side.


The following methods are used in this sample.

  • add
  • remove

The add method has the following parameters.

  • item
  • item specifies the markup that will be added to the menu or menu item. "<a>item</a>" for menu item, "<h3>head</h3>" for head item and empty for separator item.

  • position
  • the position to insert at.

The remove method has the following parameters.

  • index
  • the index of menuitem to be removed.

Documentation