Command Menu Example
From WebOS101
MainAssistant.prototype.setup = function() {
this.bottomMenuModel = {
visible: true,
items: [
{
label:'My Bottom Menu',
items: [
{ label: "Complete", command: 'complete-task', width: 118 },
{ label: "Postpone", command: 'postpone-task', width: 114 },
{ label: "More", command: 'more-menu', width: 88 }
]
}
]
};
this.controller.setupWidget( Mojo.Menu.commandMenu, {}, this.bottomMenuModel );
}
Back to Menu