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
georg22
Posts: 247
Registered: ‎11-22-2011
My Device: Blackberry Playbook
Accepted Solution

How implement "autohide" and "stick" without GroupHeaderModel?

Hello,

i just have seen this snippet in the forum:

            /*
        		GroupHeaderModel {
        			id: _headerModel
        			objectName: "groupHeaderModel"
        
        			// Set the field used to group the data
        			
        			//groupingKey: ["group"]
        			autohide: true
        			// Define an option "autohide" = true / false
        			//   . true : if there isn't items, the group is hidden
        			//   . false : if there isn't items, the group is shown
        
        			// Define option "stick" = true / false
        			//   . true : the header is always shown while items during the scroll
        			//   . false : the header scroll with the items
        			stick: true
        		} */

The groupHeaderModel seems to be gone in the 3.0 SDK - so is there another way to implement the "stick" and "autohide" functionality?

Developer
georg22
Posts: 247
Registered: ‎11-22-2011
My Device: Blackberry Playbook

Re: How implement "autohide" and "stick" without GroupHeaderModel?

its replaced by 

                layout: StackListLayout {
                    headerMode: ListHeaderMode.Sticky
                }