addToolbar
Adds a toolbar to the UI.
note
The last toolbar added at the specified position will be the one that is currently shown.
Syntax
engine.ui.addToolbar(toolbar);
Parameters
Name | Type | Description |
---|---|---|
toolbar | ToolbarElement | The toolbar to add. |
Example
engine.ui.addToolbar({
id: 'my-toolbar',
position: 'bottom',
items: [
{
name: 'Open House Menu',
key: 'Y',
},
],
});
Available on: Client