menuItems


menuItemsArray<MenuItem>

Sets or gets menu items.

Setting the menuItems property sets the items for a menu element.

Getting the menuItems property returns a menuItems array of menu items that have been set using code. If no items have been set using code, the array defaults to the items defined using the Editor.

You can't modify the menuItems array in-place. To add, change, or remove individual menu items:

  1. Store the value of the menuItems property in a variable.
  2. Make changes to the variable's array of items.
  3. Reset the menuItems property with the variable's modified array.

To have the option for 2 additional submenus available for your horizontal menu, it must first be set as an advanced menu. To set as an advanced menu, select the menu in the Velo editor, click the Settings icon, and click on Set as Advanced.

Was this helpful?
Yes
No