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
Developer
thayumaanavan
Posts: 21
Registered: ‎12-18-2012
My Device: Playbook ,Dev Alpha C, Limited Edition Z10
My Carrier: Airtel
Accepted Solution

normal text with label in list View

[ Edited ]

I want to show a normal Label with text not belonging to list (ListItemData) and also a title which is ListItemData.title.

I'm not able to get it works with the code below.Im able to see only the title not the other text.

 

ListItemComponent {
            type: "ListItem"
 
            Container {
                layout: StackLayout {
                    orientation: Orientation.LeftToRight
                }
                Label {
                    text: ListItemData.title
                }
                Label {
                    text: "asdasd" //some text which I plan to assign from js or from c++
                }
            }
        }
    ]

 

Please use plain text.
Developer
thayumaanavan
Posts: 21
Registered: ‎12-18-2012
My Device: Playbook ,Dev Alpha C, Limited Edition Z10
My Carrier: Airtel

Re: normal text with label in list View

It works now.In my original code I gave ListItemComponent's type as someother name.On changing it to "item" it works.
Please use plain text.