Skip to main content

onToolbarItemPress

This event is triggered when a toolbar item is pressed.

Parameters

NameTypeDescription
idstringThe ID of the toolbar item
toolbarIdstringThe ID of the toolbar

Example

engine.events.on('onToolbarItemPress', (id, toolbarId) => {
console.log('Toolbar item pressed:', id, 'on toolbar:', toolbarId);
});

Available on: Client