How to create moleview?

163 views
Skip to first unread message

Aman

unread,
May 10, 2017, 1:30:20 PM5/10/17
to InboxSDK
var moleView = sdk.Widgets.showMoleView({
el: '<div>Hi</div>'
});

Getting error. Above code works for modalview. Can you please help me out to create moleview.

Omar Ismail

unread,
May 10, 2017, 2:18:33 PM5/10/17
to Aman, InboxSDK
what is the error that you're getting?

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inboxsdk/0288edf4-f1e0-4aea-bc8b-414dd53ff12b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aman

unread,
May 10, 2017, 3:14:43 PM5/10/17
to InboxSDK, amaan....@gmail.com

www.inboxsdk.com/build/platform-implementation.js:100 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
    at onClick (chrome-extension://hacnicabgaffnamkfbifkialioaaeonc/content.js:12)
    at e.n.onClick [as _activateFunction] (www.inboxsdk.com/build/platform-implementation.js:87)

On Wednesday, May 10, 2017 at 11:48:33 PM UTC+5:30, Omar Ismail wrote:
what is the error that you're getting?
On Wed, May 10, 2017 at 10:30 AM, Aman <amaan....@gmail.com> wrote:
var moleView = sdk.Widgets.showMoleView({
el: '<div>Hi</div>'
});

Getting error. Above code works for modalview. Can you please help me out to create moleview.

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.

Omar Ismail

unread,
May 10, 2017, 5:54:08 PM5/10/17
to Aman, InboxSDK
you need to pass in an HTML dom element not a string.

You're correct that currently modalView does take in a string for el but that is undocumented and will be deprecated/removed soon.

To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inboxsdk/8ce4360f-2608-49b1-ba77-bb9940fe80c8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages