API Docs for: 0.0.2
Show:

layout.MenuSpec Class

Spec of config options for the Menu Layout.

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'

orientation

String

How to render menu items, vertical or horizontal

Default: 'horizontal'

type

String

type attribute of parent must be set to "menu" to get menu layout

Example:

new ludo.View({
    layout:{
        type:'menu'
        }
    });