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

Native Development

Reply
New Developer
Posts: 133
Registered: ‎10-01-2012
My Device: Playbook
My Carrier: CMCC
Accepted Solution

how to generate QML objects using javascript?

Hi,

I am trying to generate new Labels everytime the information is changed. I am aware of generating and loading XML. However, I am searching for a simple alternative way to generate labels or other objects using javascript. How to do that?

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: how to generate QML objects using javascript?

This page has an example of creating components dynamically:

http://developer.blackberry.com/cascades/reference/bb__cascades__qmlcomponentdefinition.html

 


Andrey Fidrya, @zmeyc on twitter
New Developer
Posts: 133
Registered: ‎10-01-2012
My Device: Playbook
My Carrier: CMCC

Re: how to generate QML objects using javascript?

Thanks a lot. Smiley Happy