InboxSDK.load('1.0', 'myseverapp').then(function(sdk){
sdk.Compose.registerComposeViewHandler(function(composeView){
composeView.addButton({
title: "My Nifty Button!",
onClick: function(event) {
event.composeView.insertBodyTextAtCursor('Hello World!');
},
hasDropdown: true,
onClick: function(event) {
console.log(event);
event.dropdown.el.innerHTML = 'hello world!';
},
orderHint: 0
});
});
});
I want a dropdown with title and link from server when user click on title it will fetch content from that title
How to do?
I have just started with Inboxsdk from Yesteday, I spent 16 hours to understand without any luck.
Please help!