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.

inside custom component

Native Development

Reply
New Developer
Posts: 27
Registered: ‎01-04-2010
My Device: Not Specified
Accepted Solution

Action Menu item spacing: set an action item to appear on the action menu at the bottom?

[ Edited ]

how do you set an action item to appear on the action menu at the bottom? Like the Delete item shown here:

https://developer.blackberry.com/cascades/documentation/getting_started/porting/mapping.html

 

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Action Menu item spacing: set an action item to appear on the action menu at the bottom?

I don't think you can. It's a special position, just for Delete...

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Developer
Posts: 27
Registered: ‎01-04-2010
My Device: Not Specified

Re: Action Menu item spacing: set an action item to appear on the action menu at the bottom?

Hmmm, how might I add such a special "delete" item?  I could then try forcing the icon, title and action to my liking.

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Action Menu item spacing: set an action item to appear on the action menu at the bottom?

You'd probably want to start with https://developer.blackberry.com/cascades/reference/bb__cascades__deleteactionitem.html and check out the parent class as well.

The text there suggests that the title and icon appear as the standard ones only if you don't specify your own when you add the item, so there's hope you can fake it like that.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Developer
Posts: 27
Registered: ‎01-04-2010
My Device: Not Specified

Re: Action Menu item spacing: set an action item to appear on the action menu at the bottom?

works perfectly. well done!