Skip to main content
updateCustomTrayButtons(customTrayButtons) Prebuilt Custom Sets 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

customTrayButtons
DailyCustomTrayButtons
required
An object whose keys are button IDs and whose values are button config objects.

Return value

Returns this (the DailyCall instance) for chaining.

Example

call.updateCustomTrayButtons({
  raiseHand: {
    iconPath: 'https://example.com/icons/hand.svg',
    iconPathDarkMode: 'https://example.com/icons/hand-dark.svg',
    label: 'Raise hand',
    tooltip: 'Raise your hand',
    visualState: 'default',
  },
  pollButton: {
    iconPath: 'https://example.com/icons/poll.svg',
    label: 'Poll',
    tooltip: 'Open poll',
  },
});
When a custom button is clicked, a custom-button-click event fires with the button’s ID.

See also