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
chandatmadixehoi
Posts: 45
Registered: ‎07-12-2014
My Device: Z10
My Carrier: AT & T
Accepted Solution

Help me, Error when building applications in QML file

I created a user interface list and get this error, here is my entire code:

import bb.cascades 1.0
Page {
    ListView {
        id: listview
        dataModel: XmlDataModel {
            source: "people.xml"
        }
        listItemComponents: [
            ListItemComponent {
                type: "category"
                CustomLisItem {
                    dividerVisible: true
                    Label {
                        text: ListItemData.value
                        // Apply a text style to create a large, bold font with
                        // a specific color
                        textStyle {
                            base: SystemDefaults.TextStyles.BigText
                            fontWeight: FontWeight.Bold
                            color: Color.create("#7a184a")
                        }
                    } // Label
                }
            },
            ListItemComponent {
                type: "person"
                StandardListItem {
                    title: ListItemData.name
                    description: ListItemData.born
                    status: ListItemData.spouse
                    imageSource: "asset:///images/" + ListItemData.pic
                }
            }
        ] // ListItemComponents
    } // ListView
}

 

FREE photo hosting by Up hinh, up hinh nhanh, up hinh len mang, up hinh len blog, up hinh facebook, up hinh fb, up hinh len web, up hinh dep
Please use plain text.
Developer
MagnumOpus
Posts: 133
Registered: ‎01-03-2013
My Device: n/a
My Carrier: n/a

Re: Help me, Error when building applications in QML file

You've misspelled CustomListItem.

Regards.

If my answer has been useful to you, please, click the button
Please use plain text.
New Developer
chandatmadixehoi
Posts: 45
Registered: ‎07-12-2014
My Device: Z10
My Carrier: AT & T

Re: Help me, Error when building applications in QML file

How I can fix errors?
Please use plain text.
Developer
MagnumOpus
Posts: 133
Registered: ‎01-03-2013
My Device: n/a
My Carrier: n/a

Re: Help me, Error when building applications in QML file

What errors?

Regards.

If my answer has been useful to you, please, click the button
Please use plain text.
New Developer
chandatmadixehoi
Posts: 45
Registered: ‎07-12-2014
My Device: Z10
My Carrier: AT & T

Re: Help me, Error when building applications in QML file

How to fix this spelling?
Please use plain text.
New Developer
chandatmadixehoi
Posts: 45
Registered: ‎07-12-2014
My Device: Z10
My Carrier: AT & T

Re: Help me, Error when building applications in QML file

Can you help me fix this spell is not? thank you.
Please use plain text.
Developer
MagnumOpus
Posts: 133
Registered: ‎01-03-2013
My Device: n/a
My Carrier: n/a

Re: Help me, Error when building applications in QML file

Well, you only have to change "CustomLisItem" to "CustomListItem" and that's it.

 

 

Regards.

If my answer has been useful to you, please, click the button
Please use plain text.
New Developer
chandatmadixehoi
Posts: 45
Registered: ‎07-12-2014
My Device: Z10
My Carrier: AT & T

Re: Help me, Error when building applications in QML file


I understand, thank you much
Please use plain text.