CometChat for Prebuilt

Options
2»

Comments

  • reeceatkinson
    Options

    @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.

  • daily_joey
    daily_joey Moderator, Dailynista admin
    edited October 2022
    Options

    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-click

    You 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();

     }

    });

  • reeceatkinson
    Options

    @mark_at_daily any update on this one? Excited to implement it this year!

  • Tamara
    Tamara Moderator, Dailynista admin
    Options

    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!