DigitalGood.qml Example File
paymentservice/assets/DigitalGood.qml
import bb.cascades 1.0
Container {
id: digitalGood
background: digitalGood.ListItem.selected ? Color.create("#5D00FF") : Color.Transparent
preferredHeight: 75
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
Label {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
layoutProperties: StackLayoutProperties {
spaceQuota: 2
}
text: ListItemData.name
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
Label {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
layoutProperties: StackLayoutProperties {
spaceQuota: 2
}
text: ListItemData.id
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
Label {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
layoutProperties: StackLayoutProperties {
spaceQuota: 2
}
text: ListItemData.sku
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
}