MessageBox.qml Example File
paymentservice/assets/MessageBox.qml
import bb.cascades 1.0
import com.sample.payment 1.0
Container {
property alias text: text_input.text
layout: DockLayout {}
Container {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
leftPadding: 10
rightPadding: 10
topPadding: 10
bottomPadding: 10
background: Color.Gray
Container {
leftPadding: 15
rightPadding: 15
topPadding: 15
bottomPadding: 15
background: Color.Black
TextArea {
id: text_input
horizontalAlignment: HorizontalAlignment.Fill
backgroundVisible: true
editable: false
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Red
textAlign: TextAlign.Center
}
}
}
}
}