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
connyhald
Posts: 101
Registered: ‎06-03-2012
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: 909
Registered: ‎04-08-2010
My Carrier: 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: https://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
connyhald
Posts: 101
Registered: ‎06-03-2012
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: 28
Registered: ‎11-09-2012
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.