Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

New Contributor
Posts: 5
Registered: ‎12-13-2012
My Device: alpha dev
My Carrier: TT





When i have the text that i want to mail it, how can I implement the code when the button is ckliked.

I used the code for the button:

actions: [
ActionItem {
property variant addSheet
title: "Send"
imageSource: "asset:///images/mail.png"
ActionBar.placement: ActionBarPlacement.OnBar
// When this action is selected, close
// the sheet
onTriggered: {
// Show the first sheet by setting its visibility to true.
addSheet = addSheetDef.createObject();
attachedObjects: [
ComponentDefinition {
// Component definition for the Sheet that will be shown when pressing the Add action below
id: addSheetDef
source: "Mail.qml"