Welcome!

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

Reply
New Contributor
naderahman
Posts: 5
Registered: ‎12-13-2012
My Device: alpha dev

Mailing

Hello,

 

 

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();
addSheet.open();
}
attachedObjects: [
ComponentDefinition {
// Component definition for the Sheet that will be shown when pressing the Add action below
id: addSheetDef
source: "Mail.qml"
}
]
}
]