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 Contributor
Posts: 7
Registered: ‎01-01-2013
My Device: BB10 Dev Alpha
My Carrier: O2 Germany
Accepted Solution

NavigationPane in Sheet Back Button

Hi there,

 

I placed a NavigationPane into a Sheet component in cascades via qml. This works fine. If I place actions in the Page element this also works. But I can't afford it to get the Back Action Button in the NavigationPane. I can close the sheet via an ActionItem that I place manually, but that looks non standard for back Actions. I also know, that I could use the dismissAction in the TitleBar, but as I use a SegmentedControl in the TitleBar that is not an option for me.

 

Here is an excerpt of my qml code:

 

Sheet {

    id: detailsSheet
    
    NavigationPane {
        paneProperties: NavigationPaneProperties {
             backButton: ActionItem {
                 title: qsTr("BACK")
             }
        }
        
        Page {
            id: sheetPage
            
            actions: [
                ActionItem {
                    title: qsTr("Library")
                    ActionBar.placement: ActionBarPlacement.OnBar
                    onTriggered: {
                        detailsSheet.close()                                            
                    }
                }
            ]

       }

    }

}

 

This works for closing the sheet, but the Back Button is not shown. In momentics there is a check mark for "Back Buttons Visible". Any ideas?

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: NavigationPane in Sheet Back Button

The back button will only appear if there are two or more screens in NavigationPane. I'm not sure if it's good for UX to close the Sheet using back button.

Andrey Fidrya, @zmeyc on twitter
New Contributor
Posts: 7
Registered: ‎01-01-2013
My Device: BB10 Dev Alpha
My Carrier: O2 Germany

Re: NavigationPane in Sheet Back Button

The problem consists of the fact, that I have a segmented TitleBar, therefore I can't also use a dismissAction.
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: NavigationPane in Sheet Back Button

Why don't you push to a screen in stead of opening a sheet? What is your business requirement must to open a sheet?




p(^_^)q
Good good study, day day up
New Contributor
Posts: 7
Registered: ‎01-01-2013
My Device: BB10 Dev Alpha
My Carrier: O2 Germany

Re: NavigationPane in Sheet Back Button

[ Edited ]

Thank you guys! I changed the behaviour and the user interaction to a different way now.

 

Especially thank you for clearifying the circumstancesunder which the back button is visible!