How to add button using MessageView()

552 views
Skip to first unread message

Sourav Kuila

unread,
Jun 22, 2017, 3:50:25 AM6/22/17
to InboxSDK
I have already added a button using MessageView() in the message body in the left side of the mail received time area. Here is my code -

sdk.Conversations.registerMessageViewHandler(function(MessageView){
MessageView.addAttachmentIcon({
iconUrl: 'https://www.example.com/img/example.PNG',
onClick: function(event) {
sdk.Widgets.showModalView({
el:"<p>Hello World !</p>",
showCloseButton:true,
});
},
});

});

I want to add another button in message body beside the left side of 'Print all' button and also a another button in message body in the right side of 'More' button.

Please help me on this ASAP.
* How to add an attachment on this topic

Thank you
Sourav Kuila

Chris Cowan

unread,
Jun 22, 2017, 4:07:37 PM6/22/17
to InboxSDK
The only other spots we currently support buttons is on the thread's toolbar and under a message's more menu, as shown in this screenshot:


We're always considering new features, but we also consider how well ideas can work in Inbox too. Inbox doesn't have the same button group where Gmail's print-all button is, and Inbox has no per-message buttons besides the more-menu, so we're not sure that we would want to target those specific spots.

Sourav Kuila

unread,
Jun 23, 2017, 12:00:17 AM6/23/17
to InboxSDK, Chris Cowan
Hello Chris,


Thanks for your reply. I have also tried this as you said but there is some problem with 'orderHint' function. So please help me on this.

And also please help me about the attachment details i.e (getAttachmentType(), getTitle(), getDownloadURL()) using MessageView.getFileAttachmentCardViews()


Inline image 1



Thanks and regards
Sourav Kuila

Chris Cowan

unread,
Jun 23, 2017, 1:30:22 PM6/23/17
to InboxSDK, co...@streak.com
The orderHint property must be a number.
Reply all
Reply to author
Forward
0 new messages