layout.MenuSpec Class
Spec of config options for the Menu Layout.
Item Index
Attributes
Attributes
active
Boolean
true to show sub menus on mouse over without first having to click on parent menu item.
Default: false
alignSubMenuH
String
Where to show sub menu horizontally, rightOrLeftOf, leftOrRightOf, leftOr or rightOf. rightOrLeftOf will show sub menu to the right if there's enough space left. leftOrRightOf will show sub menu to the left if there's enough available space. leftOf and rightOf will always show the sub menu to the left or right no matter available space.
Default: 'rightOrLeftOf'
alignSubMenuV
String
For horizontal menus, where to show sub menu vertically, below or above
Default: 'below'
type
String
type attribute of parent must be set to "menu" to get menu layout
Example:
new ludo.View({
layout:{
type:'menu'
}
});