addTileAction()
addTileAction(name: string, properties: TileActionProperties, listener: function)
Adds a custom action to the 3-dots menu of the tiles. When the user clicks that custom menu item, then the callback listener function will be invoked.
In the below example a send email action is added to all remote tiles.
const onSendEmailClicked = () => {
console.log('Send Email callback called');
};
sambaFrame.addTileAction(
'sendEmail',
{"label": 'Send Email', scope: 'remote'},
onSendEmailClicked
);
Last updated