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
Trusted Contributor
fireball003
Posts: 132
Registered: ‎10-01-2012
My Device: Playbook
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
Zmey
Posts: 1,514
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

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
Trusted Contributor
fireball003
Posts: 132
Registered: ‎10-01-2012
My Device: Playbook

Re: how to generate QML objects using javascript?

Thanks a lot. :smileyhappy: