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
connyhald
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
Please use plain text.
Developer
ekke
Posts: 1,412
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
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
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
connyhald
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
Please use plain text.
Developer
yogeshwarp
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

Please use plain text.
Developer
alopix
Posts: 381
Registered: ‎04-10-2011
My Device: Z10 LE & PlayBook

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 :smileysad:
-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blogs /dev/alopix and /home/alopix
BBM Channel: C0047B612
Please use plain text.
Developer
ekke
Posts: 1,412
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
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
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
alopix
Posts: 381
Registered: ‎04-10-2011
My Device: Z10 LE & PlayBook

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 blogs /dev/alopix and /home/alopix
BBM Channel: C0047B612
Please use plain text.