PushContent.qml Example File
pushCollector/10.0/pushCollector/assets/PushContent.qml
import bb.cascades 1.0
Container {
Container {
horizontalAlignment: HorizontalAlignment.Fill
topPadding: 10
bottomPadding: 15
leftPadding: 20
layout: DockLayout {}
background: Color.create("#cccccccc")
Label {
text: _pushAPIHandler.currentPushContent.pushDateTime
}
}
Container {
topPadding: 20
leftPadding: 20
rightPadding: 20
TextArea {
visible: (_pushAPIHandler.currentPushContent.contentType == "plainText")
text: _pushAPIHandler.currentPushContent.textContent
editable: false
input{
flags: TextInputFlag.SpellCheckOff
}
}
ImageView {
id: imageView
visible: (_pushAPIHandler.currentPushContent.contentType == "image")
image: _pushAPIHandler.currentPushContent.imageContent
}
WebView {
visible: (_pushAPIHandler.currentPushContent.contentType == "richText")
html: _pushAPIHandler.currentPushContent.textContent
}
}
}