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
Regular Contributor
Posts: 51
Registered: ‎08-07-2013
My Device: blackberry z10
My Carrier: asif
Accepted Solution

listview footer

i m using a listview i m place a header and footer 

i m place header but footer can not place in a istview...

  ListItemComponent {
                        type: "header"
                        Container {
                            id: headercon
                            preferredWidth: 768
                            Label {
                                
                                text: "Name:"
                                textStyle.color: Color.create("#018bb0")
                                translationX: 20
                            } 
}
},
ListItemComponent {
                        type: "item"
                        AddTo_cart {     
                        }
                    },
 ListItemComponent {
                        type: "Footer"
                    }

 

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

Re: listview footer

Does your data return a type of 'Footer'?

 

Please post a snippet of the data if so.


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.
Regular Contributor
Posts: 51
Registered: ‎08-07-2013
My Device: blackberry z10
My Carrier: asif

Re: listview footer

i want to create footer in a listview 

load more button 

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

Re: listview footer

Just use a Stack container and add a full width button on the bottom that loads the data.

 

Look at the AsyncronousDataProviding sample for how this is done, but in this case the button is on the top...

 

http://developer.blackberry.com/native/documentation/cascades/ui/lists/asynch_data.html

 


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.