main.qml Example File
invoketarget/assets/main.qml
import bb.cascades 1.0
Page {
titleBar: TitleBar {
title: _app.title
}
ScrollView {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Top
scrollViewProperties.scrollMode: ScrollMode.Vertical
Container {
topPadding: 50
leftPadding: 50
rightPadding: 50
Label {
text: "<html>Try invoking this app as a <b>Card</b> with the following parameters. You can also use the InvokeClient sample app on blackberry.github.com/cascades-samples to invoke these cards.<hr/><p/><br/><b>Composer:</b><br/><i>Action:</i> bb.action.SHARE<br/><i>MIME:</i> text/plain<br/><i>Data:</i> [ANYTHING]<p/><br/><b>Previewer:</b><br/><i>Action:</i> bb.action.OPEN<br/><i>URI:</i> file:///path/to/file.jpg<p/><br/><b>Picker:</b><br/><i>Action:</i> com.example.PICKEGG<br/><i>MIME:</i> food/egg</html>"
multiline: true
textStyle {
fontSize: FontSize.XSmall
color: Color.LightGray
}
}
}
}
}