Cascades, 10.2 SDK
MyCustomContainer.qml:
import bb.cascades 1.2
Container {
id: rootContainer
Container{
id: childContainer
// some content
}
}
MyPage.qml:
import bb.cascades 1.2
Page {
MyCustomContainer{
Label{
id: label
}
}
}
Label will be added on top of all content inside the rootContainer. I'd like to insert the label(or any other content) below all the content in MyCustomContainer. I've tried creating a property inside MyCustomContainer:
property Container backgroundContent
and add it as first child inside the MyCustomContainer as:
id: rootContainer
backgroundContent{
id: backgroundContent
}
and just set it in MyPage as:
MyCustomContainer{
backgroundContent: Container{
}
but I get
Cannot assign to non-existent property "id"
since the property value has not been set.
Can I somehow insert the content from MyPage.qml at the root of the MyCustomContainer?