Tray
TrayItem object
Property
Type
Description
Tray object
constructor(icon, items)
import { Tray } from '@empathize/framework';
const tray = new Tray('path_to/my_icon.png', [
{ text: 'Example text', disabled: true },
{
text: 'Example button',
click: (item) => {
console.log(`Hey! You just clicked "${item.text}"!`);
}
}
]);tray.items
tray.update(items)
tray.hide()
Last updated