...
Info |
---|
You can find the widget ID (which is |
As the a result, you should get the following:
...
...
Save the widget.
Case of multiple widgets, same target host:
You need to ensure your two init functions:
Code Block |
---|
Kbot.get().Widgets.initRemoteConfig('widget-id-value-1')
Kbot.get().Widgets.initRemoteConfig('widget-id-value-2') |
All you need to to have two distinct client scripts, each pointing to a different widget id.
Code Block |
---|
api.controller=function() {
/* widget controller */
var c = this;
c.showKbotWidget = function() {
Kbot.get().Widgets.execute('widget-id-value-2', 'showWidget')
}
}; |
Adding the widget to a portal
...