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
Highlighted
Developer
Posts: 102
Registered: ‎06-03-2012
My Device: Playbook
My Carrier: *
Accepted Solution

ActionBar on Sheet

Hi guys,

 

I'm using a Sheet which contains a Page with an ActionBar. Unfortunately it look like I cannot place the actions on the bar, but only on the overflow menu. So, my UI always shows an empty ActionBar with a full overflow menu.

 

Is this a bug with having an ActionBar on a Sheet? I'm setting up my actions like this:

 

actions: [ 
    ActionItem {
        title: "Back"
        imageSource: "asset:///images/icon11.png"
        ActionBar.placement: ActionBarPlacement.OnBar
        onTriggered: {
            mySheet.visible = false
        }
    },
    ActionItem {
        title: "Wallpaper"
        imageSource: "asset:///images/icon11.png"
        ActionBar.placement: ActionBarPlacement.OnBar
        onTriggered: {
            console.log("Wallpaper clicked")
        }
    },
    ActionItem {
        title: "Share"
        ActionBar.placement: ActionBarPlacement.InOverflow
        onTriggered: {
            console.log("Share clicked")
        }
    }
]

 

-----------
http://kodira.de
BB Apps: Pattern :: Plonk
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: ActionBar on Sheet


connyhald wrote:

Hi guys,

 

I'm using a Sheet which contains a Page with an ActionBar. Unfortunately it look like I cannot place the actions on the bar, but only on the overflow menu. So, my UI always shows an empty ActionBar with a full overflow menu.

 

Is this a bug with having an ActionBar on a Sheet? I'm setting up my actions like this:

 

actions: [ 
    ActionItem {
        title: "Back"
        imageSource: "asset:///images/icon11.png"
        ActionBar.placement: ActionBarPlacement.OnBar
        onTriggered: {
            mySheet.visible = false
        }
    },
    ActionItem {
        title: "Wallpaper"
        imageSource: "asset:///images/icon11.png"
        ActionBar.placement: ActionBarPlacement.OnBar
        onTriggered: {
            console.log("Wallpaper clicked")
        }
    },
    ActionItem {
        title: "Share"
        ActionBar.placement: ActionBarPlacement.InOverflow
        onTriggered: {
            console.log("Share clicked")
        }
    }
]

 


I have already submitted Issue BBTEN-212 - please vote - THX

ekke

 

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

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 102
Registered: ‎06-03-2012
My Device: Playbook
My Carrier: *

Re: ActionBar on Sheet

Thanks! I've just voted.

-----------
http://kodira.de
BB Apps: Pattern :: Plonk
Developer
Posts: 30
Registered: ‎11-09-2012
My Device: Dev Alpha A
My Carrier: Airtel

Re: ActionBar on Sheet

Looks like this issue was solved with latest SDK or simulator update. I don't face this issue anymore

Developer
Posts: 426
Registered: ‎04-10-2011
My Device: Z30

Re: ActionBar on Sheet

And again: 10.1 SDK does not like the ActionBar anymore. Only shows a light gray thingy on top of the Sheet's page but that's it. Overflow menu sometimes works, but placement OnBar doesn't Smiley Sad
-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blog alopix.net
BBM Channel: C0047B612
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: ActionBar on Sheet

ActionBar works perfect using 10.1 in Pages on NavigationPane on top of Sheet

see the sample app I provided in this thread

http://supportforums.blackberry.com/t5/Cascades-Development/just-published-HowTo-create-a-custom-App...

 

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

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 426
Registered: ‎04-10-2011
My Device: Z30

Re: ActionBar on Sheet

Using the actions inside Sheet{Page{}} works sometimes and sometimes now.
Don't know why I should add a additional NavigationPane when I don't need it?
-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blog alopix.net
BBM Channel: C0047B612