Hi,
I was just playing with the TransitionList component of the GuaranaUI and I am not sure how to "know" which item was clicked.
e.g.
Then I created 10 objects:Code:myList = new Nokia.TransitionList({ element: '#mylList', title: 'My List', visible: true, create: function() {}, show: function(openerTransitionList) {}, hide: function() {}, addItem: function(event, item) { }, removeItem: function(event, item) {} });
I tried putting an alert(i) but it doesn't work because i was constantly changing.Code:for (var i = 0; i < 10; i++) { myList.addItem ( new Nokia.TransitionListItem({ label: 'Item No. ' + i, click: function (){} }) ); }
Can someone advise?
Many thanks!

Reply With Quote



