The MenuItemLink shape is used to render a menu item link.
This shape is created by morphing a MenuItem shape into a MenuItemLink. Hence all the properties
available on the MenuItem shape are still available.
The Menu shape owning this item.
The content item representing this menu item.
The level of the menu item. 0 for top level menu items.
The list of sub menu items shapes. These are shapes of type MenuItem.
If defined, contains the formatted name of the menu. For instance MainMenu.
Some times you need to set a menu item as active if it is the currently displayed one.
Use class to define what class you want to add to the parent of the anchor tag that has the current url as href. If you want to apply it to a child, set the selector property. Use the traverse to a positive number in order to seek a less specific url in the menu tree then the currently displayed on. ex. If you have a link to '/todo-items' in menu and you have navigated to '/todo-items/Create', it will try to find the item with traverse item less segments in the menu and activate it.
cb: function( items )
If it finds an active item, the call back is hit for extra configuration. ex. Expand a menu item if the active one is nested.