ViewerField.qml Example File
addressbook/assets/ViewerField.qml
import bb.cascades 1.0
Container {
property alias title: titleField.text
property alias value: valueField.text
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
Label {
id: titleField
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Black
fontStyle: FontStyle.Italic
}
opacity: 0.7
}
Label {
id: valueField
layoutProperties: StackLayoutProperties {
spaceQuota: 2
}
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Black
}
}
}