View Menu Example

From WebOS101

Jump to: navigation, search
MainAssistant.prototype.setup = function() {
this.topMenuModel = {
visible: true,
items: [
{
label:'My Top Menu',
items: [
{ label: "Select", command: 'select-menu', width: 90 },
{ label: "List Title", command: 'title-menu', width: 140 },
{ label: "Sort", command: 'sort-menu', width: 90 }
]
}
]
};
this.controller.setupWidget( Mojo.Menu.viewMenu, {}, this.topMenuModel );
}

Back to Menu

Personal tools