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

Web and WebWorks Development

Reply
Highlighted
Developer
Posts: 275
Registered: ‎02-05-2010
My Device: Blackberry Z10
My Carrier: Bouygues Telecom

Re: bbui change innerHtml of an image list item

Hmm... I think it's too easy.

I'll give it a try and tell you if it works.

Twitter : @LaurentKP
My apps
Developer
Posts: 275
Registered: ‎02-05-2010
My Device: Blackberry Z10
My Carrier: Bouygues Telecom

Re: bbui change innerHtml of an image list item

Unfortunatly, myList[0].remove() is not working. I can't update my list items by deleting/inserting because I can only remove the selected item.
The clear() method in BBUI 0.9.4 is the solution. Even if it's not the best solution regarding the performance, I could clear() all items in the list and append refreshed items...

Tim, any idea when BBUI 0.9.4 will be available ?

Twitter : @LaurentKP
My apps
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: bbui change innerHtml of an image list item

I don't believe selecting a list item by using myList[0] will work.. that will just grab the first element in a list which could be a header or some other hidden comment dom element etc.  To get the item you will want to select it by its id.

 

document.getElementById('mylistitemid').remove();

 

 

 

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter