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
Developer
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus

Place ActionItem at the Bottom

Hi all, how do we do that?? I couldn't find any docs on that..

IMG_00000092 copy.png

Thanksssssss

www.jackdevora.com
Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: Place ActionItem at the Bottom

Give your action items the property ActionBar.placement: ActionBarPlacement.OnBar

 

for example:

import bb.cascades 1.0

// creates one page with a label
NavigationPane
{
    id: navigationPane
	Page
	{
	    id: mainPage
	    
	    Container
	    {
	        layout: DockLayout {}
        
            Label
            {
                id: textLabel
                text: "Label"
	        }
	    }
	    
	    actions: 
	    [
		    ActionItem
		    {
		        title: "Options"
		        ActionBar.placement: ActionBarPlacement.OnBar
		    },       
		    ActionItem
		    {
		        title: "About"
		        ActionBar.placement: ActionBarPlacement.OnBar
		    } 
		]
	}
}

 


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus

Re: Place ActionItem at the Bottom

Hi there, thanks for the reply.

ActionPlacement::OnBar 

 

place it on the ActionBar.

 

What I wanted was having it on the bottom of the side menu

www.jackdevora.com
Regular Contributor
Posts: 54
Registered: ‎07-15-2010
My Device: Not Specified

Re: Place ActionItem at the Bottom

Hello,

 

Did you find how to place an item on the bottom of the ActionBar? It would be very helpful!

 

Thanks,

Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Place ActionItem at the Bottom

agreed id like to see that also and possible title to the top of  action page

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Developer
Posts: 291
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: Place ActionItem at the Bottom

Use DeleteActionItem instead of ActionItem, and the item will be placed at the bottom of the menu.