customTrayButtons()
Prebuilt
Custom
Returns all currently configured custom tray buttons. Each button is keyed by its button ID.
Return value
Returns a DailyCustomTrayButtons object — a map of button ID strings to DailyCustomTrayButton objects:
URL of the button icon in light mode.
Optional. URL of the button icon in dark mode.
The button label shown in the tray.
Tooltip text shown on hover.
Optional. The button’s current visual state: 'default', 'active', or 'disabled'.
Example
const buttons = call.customTrayButtons();
// Check a specific button's state
const raiseHand = buttons['raise-hand'];
if (raiseHand?.visualState === 'active') {
console.log('Hand is raised');
}
// Example return value
{
"customButtonOne": {
"iconPath": "https://example.com/path/to/icon.svg",
"iconPathDarkMode": "https://example.com/path/to/darkmode/icon.svg",
"label": "My Custom Button",
"tooltip": "My Custom Button Tooltip",
"visualState": "default"
},
"customButtonTwo": {
"iconPath": "https://example.com/path/to/icon.svg",
"label": "Another Custom Button",
"tooltip": "Another Custom Button Tooltip"
}
}
See also