PDA

View Full Version : NestedList back button only remembers text and items?



jsm174
6 Aug 2010, 11:13 AM
I'm trying to implement a navbar title change when the user hits the back button. For my nested list, I implemented additional variables to represent the titles.


items: [
{
text: 'Native Applications',
shortText: 'Native Apps'
items: [
{
text: 'Mobile Provisions',
shortText: 'Provisions',
items: mobileProvisionItems
},
.
.
.

nestedList.on('listchange', function(list, item) {
if (item.shortText) {
toolbar.setTitle(item.shortText);
}
});

When I navigate forward shortText is always available, however when I navigate back, shortText is always null. Was this the intended behavior?

Thanks
Jason