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:
menuItems
property in a variable.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.