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
Contributor
Posts: 14
Registered: ‎11-07-2013
My Device: x
My Carrier: y
Accepted Solution

Drawer (sidebar) component

Hello fellas,

 

I've been looking through the docs and couldn't find the drawer (or sidebar) component. The component is shown when using the swipe gesture left->right from the left edge of the screen on the hub screen( I'm currently on z10, Cascades, SDK 10.2). Is there a native drawer component or should I develop one myself?

 

 

Thanks in advance

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Drawer (sidebar) component

What your seeing is the TabbedPane...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__tabbedpane.html

 

But a drawer can easily be accomplished with an animated container.

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Contributor
Posts: 14
Registered: ‎11-07-2013
My Device: x
My Carrier: y

Re: Drawer (sidebar) component

Yeah, I am aware of the TabbedPane, I was just wondering if there is a drawer already implemented since it's widely used component, especially on some other platforms.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Drawer (sidebar) component

Funnily enough I asked the same question about a year ago and many people (not coming from android) didn't know what I meant by drawer.

 

In the end, on feedback from developers and users, I removed the drawer from my app (which did use a container and animation) and instead moved the action to the action menu still with a sliding animation.

 

A separate widget is not needed as;

 

1) It doesn't really fit in to to the BBOS UI style

 

and

 

2) If you really must have it it's just a few lines of QML.

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.