onToolbarItemPress
This event is triggered when a toolbar item is pressed.
Parameters
Name | Type | Description |
---|---|---|
id | string | The ID of the toolbar item |
toolbarId | string | The ID of the toolbar |
Example
engine.events.on('onToolbarItemPress', (id, toolbarId) => {
console.log('Toolbar item pressed:', id, 'on toolbar:', toolbarId);
});
Available on: Client