mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 14:38:21 +00:00
@@ -42,7 +42,7 @@ let widgetApi: WidgetApi;
|
|||||||
`action:${WidgetApiToWidgetAction.ButtonClicked}`,
|
`action:${WidgetApiToWidgetAction.ButtonClicked}`,
|
||||||
(ev: CustomEvent<IWidgetApiRequest>) => {
|
(ev: CustomEvent<IWidgetApiRequest>) => {
|
||||||
console.log("@@ clickety", ev.detail);
|
console.log("@@ clickety", ev.detail);
|
||||||
document.getElementById("button").innerText = "BUTTON CLICKED: " + JSON.stringify(req.data);
|
document.getElementById("button").innerText = "BUTTON CLICKED: " + JSON.stringify(ev.detail.data);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
widgetApi.closeModalWidget(ev.detail.data);
|
widgetApi.closeModalWidget(ev.detail.data);
|
||||||
}, 3000);
|
}, 3000);
|
||||||
|
|||||||
Reference in New Issue
Block a user