Reputation: 2082
I wonder If it is possible to run a function as clicking on the compose or reply buttons. My updateDraft function runs as clicking on the add-on button in compose window but I couldn't find any information in documentation, about running a function just after clicking on the compose button.
"composeTrigger": {
"selectActions": [{
"text": "Insert Image",
"runFunction": "updateDraft"
}],
"draftAccess": "METADATA"
}
Upvotes: 0
Views: 133
Reputation: 64040
The only access that Gmail Addons have to Gmail is through the Card Service. So if you can't find it in the card service then you don't have it.
Upvotes: 1