Say I have a window like so
var win = Ti.UI.createWindow({ title : 'SSSSS', layout: 'vertical', activity: { onCreateOptionsMenu : function(e) { var m1 = e.menu.add({ title : 'Logout' }); m1.addEventListener('click', function(e) { app.user.logout(); }); } } });then later in code I want to add more menu items into menu. How do I go about doing it?
1 Answer
Accepted Answer
see this in the documentation
Your Answer
Think you can help? Login to answer this question!