06-21-2013 05:25 AM
I want to add a button on action bar and few more actions on antion menu. But the problem is the button will also appear in the action menu.
Here is the code:
var page1 = catalogue1.createObject();
var page2 = history.createObject();
//do work here.
The button is appeared on the action bar as well as on the action menu.
Can anyone help me??
Solved! Go to Solution.
06-21-2013 05:34 AM
06-21-2013 05:43 AM
06-21-2013 05:56 AM - edited 06-21-2013 05:57 AM
This is 'by design' and what users would expect, therefore I wouldn't recommend you change it.
Having said that however trapping the AnimatingToVisibleFull and/or VisibleFull signal on the menu then hiding or removing the action would be the way to go if you must.
A byproduct of this of course is that it will dissapear from the bar as well (maybe making your app look a bit jittery).
06-21-2013 05:58 AM
06-21-2013 06:20 AM
You're questions suggest you are just starting with Cascasdes asking for samples when you clearly haven't put in the time to look around to see what's already available is a bit off. Just a quick search in the documentation would teach you about the visible property or the removeAction function
Please read the documentation on ActionBars and look at the samples already available...