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
Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Dynamic grid list is not populating properly?

[ Edited ]

Hi all, This is the code i have written

 

var grid = document.createElement('div');

grid.setAttribute('data-bb-type','grid-layout');

// Create group var group = document.createElement('div');

group.setAttribute('data-bb-type','group');

grid.appendChild(group);

// Create row var row = document.createElement('div');

row.setAttribute('data-bb-type','row');

group.appendChild(row);

// Create Item var item = document.createElement('div');

item.setAttribute('data-bb-type', 'item');

item.setAttribute('data-bb-img', 'images/face.jpg');

item.setAttribute('data-bb-title', 'Faces');

item.innerHTML = 'World';

row.appendChild(item);

grid = bb.grid.style(grid);

element.getElementById('gridContainer').appendChild(grid);

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Dynamic grid list is not populating properly?

Dynamic grid lists are not currently supported in bbUI.js

 

https://github.com/blackberry/bbUI.js/issues/312?source=cc

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Highlighted
Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: Dynamic grid list is not populating properly?

Is there any workaround to achieve that?