CometChat for Prebuilt
Comments
-
@mark_at_daily I just gave the "Custom Button API" a try and I love it! One question I did have was how can you run a JS function on click of one as I did not see it in the docs.
1 -
Hi @reeceatkinson , the click action for custom tray buttons is exposed as an event, so you should be able to run a JS function by attaching it to a listener for the
custom-button-click
event: https://docs.daily.co/reference/daily-js/events/meeting-events#custom-button-clickYou will probably also want to check the ID of the button that was clicked. Something like the following:
callFrame.on("custom-button-click", (e) => {
if (e.button_id === "jsFunctionButton") {
myCustomFunction();
}
});
11 -
@mark_at_daily any update on this one? Excited to implement it this year!
1 -
Hi Reece, the current target release for the integrations API is at the end of this month. Keep an eye out on our release notes here or in the changelog, or feel free to poke us anytime for updates around this!
2