I have created the button in the gmail inbox using inboxsdk. Now i want to get a pop up by clicking on that button
2.Pop up should contain a link which navigates to my website page(xyz.com/login.php)
How can i do these using inboxsdk
I have created the button in the gmail inbox using inboxsdk. Now i want to get a pop up by clicking on that button
2.Pop up should contain a link which navigates to my website page(xyz.com/login.php)
How can i do these using inboxsdk

If you are still struggling with this, I would suggest a simple solution which is to fire a JavaScript confirm dialog see here. On confirmation you could redirect the user, using
window.location.href = '<your-url>';.Another solution would be to use InboxSDK's widgets. Example:
For more
ModalOptionslook here.Notice: I set the attribute
targetattribute of<a>tag to"_blank". This makes sure the url opens in another browser tab.A third, more direct (optional) solution would be to add an
onClickevent listener to which you attach a function that redirects the user to your url, see a code example here.A fourth and better possible solution would be to add a
DropdownViewto your button'sonClickfunction, see example code here.