Skip to content

charton API


charton API / @chart-on/ui / index / ShellPluginHost

Interface: ShellPluginHost ​

Defined in: ui/src/plugin-host.ts:5

What the shell offers plugins (see shellOf).

Methods ​

addToolbarItem() ​

addToolbarItem(item, placement?): () => void

Defined in: ui/src/plugin-host.ts:10

Add a top-bar item (give it a group, see roadmap/toolbar-layout.md); returns a function that removes it. Does nothing without a toolbar.

Parameters ​

item ​

ToolbarItem

placement? ​

ToolbarPlacement

Returns ​

() => void