FieldLabel.qml Example File
placepicker/assets/FieldLabel.qml
import bb.cascades 1.0
Container {
id: root
property alias title : titleLabel.text
property string field
property variant selectedPlace
visible: (selectedPlace ? (selectedPlace[field] != "") : false)
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
Label {
id: titleLabel
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}
opacity: 0.7
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
fontStyle: FontStyle.Italic
}
}
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}
text: selectedPlace ? selectedPlace[field] : ""
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
multiline: true
}
}