Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
turdidae
Posts: 15
Registered: ‎06-02-2012
My Carrier: Play Poland

ActionItem in OnBar only

Hi,

 

I have quik question: can I make ActionItem to show only in OnBar  and not to show in InOverflow?

 

ActionBar.placment is only a sugestion where to put ActionItem. With InOverflow it will not show on OnBar but with 3+ Actions OnBar will apear in InOverflow. But I don't need show this OnBar one more time in InOverflow. Is there any way to hide them in InOverflow?

 

Thanks

Turdidae

Please use plain text.
Developer
ekke
Posts: 913
Registered: ‎04-08-2010
My Carrier: vodafone

Re: ActionItem in OnBar only


turdidae wrote:

Hi,

 

I have quik question: can I make ActionItem to show only in OnBar  and not to show in InOverflow?

 

ActionBar.placment is only a sugestion where to put ActionItem. With InOverflow it will not show on OnBar but with 3+ Actions OnBar will apear in InOverflow. But I don't need show this OnBar one more time in InOverflow. Is there any way to hide them in InOverflow?

 

Thanks

Turdidae


at the moment there's no way to hide the on-bar-visible actions from overflow

reading the cascades ui design guidelines the overflow should only contain the remaining actions not already visible on the action bar, so I think this will be fixed (hopefully beta 3)

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: https://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
Zmey
Posts: 909
Registered: ‎12-18-2012

Re: ActionItem in OnBar only

[ Edited ]

Hi,

 

Has anyone found a workaround for this issue?

 

B4B review team asked me to remove duplicate buttons from the overflow menu.

 

When I add actions with OnBar placement, they appear on bar only. But once I add one or more actions with InOverflow placement, all OnBar actions suddenly appear in overflow menu as well. :smileysad:

 

Changing the order of actions to add InOverflow ones first did not help. OnBar actions still appear in overflow menu, even when added later.

 

I've found another thread with suggestion to create the actions once and just modify their properties later, but this also doesn't work. I think that the placement can't be changed after adding the action.

 

Any ideas are welcome.

Please use plain text.
Regular Contributor
SpacemanSpiff
Posts: 58
Registered: ‎01-08-2013
My Carrier: NA

Re: ActionItem in OnBar only

"B4B review team asked me to remove duplicate buttons from the overflow menu."

 

This is nonsense if i understand correctly,

 

Check this link Navigation Single Screen.

 

Specifically  they say

 

"It's important to note that the action menu is displayed only if you add actions that don't use theActionBarPlacement::smileysurprised:nBar value (or if the action bar is full, as described above). In addition, if an action menu is displayed, the menu contains all of the actions for the Page, including those actions that already appear on the action bar. Consider the following examples that illustrate this behavior"

 

So testing team wants to change cascade design ? Open a bug on blackberry :smileyhappy:

 

Please use plain text.