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: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry
Accepted Solution

How to add a control in a header type item in a ListView

Capture.PNG

 

How do I add a toggle button in the right side of the header? is there a way to do this?  Thanks.

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: How to add a control in a header type item in a ListView

You would need to make a custom component for your header instead of using the standard one. See the "Customizing the appearance of list items" section here, for a start: https://developer.blackberry.com/native/documentation/cascades/ui/lists/list_view.html

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!