FieldNumber.qml Example File
placepicker/assets/FieldNumber.qml
import bb.cascades 1.0
Container {
id: root
property alias title : titleLabel.text
property string field
property variant selectedPlace
visible: (selectedPlace ? !((selectedPlace[field] > 1000000) || (selectedPlace[field] == -1)) : 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
}
}