01-10-2013 06:43 AM
Hi,
I currently have an image list which is currently populated by taking an array of items and adding it to the list through the refresh method.
The image list is set up as follows:
<div data-bb-type="image-list" data-bb-image-effect="fade"
id="imgList" data-bb-style="arrowlist"
data-bb-image-placeholder="img\\transparentBkgnd.p
</div>
It is empty at the start and populated by the following:
var imgList = element.getElementById("imgList");
imgList.refresh(items);
where items is the array of items on the list.
Once the list has loaded a user can click on a button to add more elements to the list, however when i call:
var imgListItems = element.getElementById("imgList").getItems();
alert(imgListItems.length)
I am getting a value of 0 which is wrong as the list has about 20 items in it on screen.
I have tried calling the getItems() after imgList.refresh(items); has been called and it still returns a length of 0.
I have just taken the latest version of BBUI as of 10/01/2013.
Is this behaviour expected or is it an issue?
01-12-2013 09:19 AM - edited 01-12-2013 09:19 AM
Could you possibly open this up as an issue at github
https://github.com/blackberry/bbui.js/issues
That way it can be investigated and tracked.
01-13-2013 05:05 PM
Ok. I have created issue #592.