Sets or updates custom buttons in the Daily Prebuilt tray.
updateCustomTrayButtons(customTrayButtons) Prebuilt CustomSets the custom tray buttons for a Daily Prebuilt call. Equivalent to setting customTrayButtons at call creation, but can be called at any time to add, update, or remove buttons.
The provided object completely replaces the previous set of buttons. To add a button to an existing set, include all current buttons alongside the new one.
Parameters
DailyCustomTrayButtons
required
An object whose keys are button IDs and whose values are button config objects.
Hide DailyCustomTrayButton fields
string
required
URL to the button icon (SVG recommended). Must be an https: URL since Prebuilt runs inside an <iframe>.
string
required
Accessible label for the button.
string
required
Tooltip text shown on hover.
string
URL to an alternate icon for dark mode. Must be an https: URL.
'default' | 'active' | 'sidebar-open'
Visual state of the button. Defaults to 'default'.
Return value
Returns this (the DailyCall instance) for chaining.