How can I target an individual email's menu or add a button to an individual email in the new Inbox web app using InboxSDK?

107 views
Skip to first unread message

Dave Birkhead

unread,
Apr 7, 2017, 6:32:10 AM4/7/17
to InboxSDK
Hi guys, I'm currently helping a developer modify an existing app that allows the user to add an option on an email menu to copy a property of that email (such as email ID) to clipboard using a menu shortcut or button placed by the extension, but I'm new to inboxSDK and can't seem to find any helpful reference in the API documentation.

Could someone point me to an explanation of how I would add a menu item or button to an individual email's options, so that I can do this in the Inbox web app? I currently have code that works for the original GMail webapp using InboxSDK but it doesn't work with the new Inbox app.

Thanks in advance.

Dave Birkhead

unread,
Apr 7, 2017, 6:53:06 AM4/7/17
to InboxSDK
From what I've gathered so far, it's not possible to add buttons the way you can with the GMail web app. But surely there is something I can add to add this functionality?

--
You received this message because you are subscribed to a topic in the Google Groups "InboxSDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/inboxsdk/oL0_zllTF3E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to inboxsdk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inboxsdk/a36e9177-71d9-4007-9b2b-93297508ca23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

er...@streak.com

unread,
Apr 14, 2017, 2:26:58 AM4/14/17
to InboxSDK
Hey Dave,

You are correct — though we support several APIs for adding message-specific buttons in Gmail those APIs have not yet been added to Inbox. Right now the closest Inbox-supported API to what you're describing is MessageView.addAttachmentCardView(), but that UI doesn't really seem appropriate for your use case (your button is more of an action button than an attachment-like button).

We're working hard on bringing more of InboxSDK to Inbox, but there are a few APIs we plan to implement ahead of the message button APIs based on usage/demand. In the meantime you could either use MessageView.addAttachmentCardView() temporarily, or try to write something yourself. I don't necessarily recommend trying to write something yourself given that — in addition to the high degree of complexity in writing your own DOM manipulation code — Inbox is under active development and changes very frequently so your code may break periodically.

Thanks for using the SDK!


On Friday, April 7, 2017 at 3:53:06 AM UTC-7, Dave Birkhead wrote:
From what I've gathered so far, it's not possible to add buttons the way you can with the GMail web app. But surely there is something I can add to add this functionality?

On Fri, Apr 7, 2017 at 11:32 AM Dave Birkhead <16bit...@gmail.com> wrote:
Hi guys, I'm currently helping a developer modify an existing app that allows the user to add an option on an email menu to copy a property of that email (such as email ID) to clipboard using a menu shortcut or button placed by the extension, but I'm new to inboxSDK and can't seem to find any helpful reference in the API documentation.

Could someone point me to an explanation of how I would add a menu item or button to an individual email's options, so that I can do this in the Inbox web app? I currently have code that works for the original GMail webapp using InboxSDK but it doesn't work with the new Inbox app.

Thanks in advance.

--
You received this message because you are subscribed to a topic in the Google Groups "InboxSDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/inboxsdk/oL0_zllTF3E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to inboxsdk+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages