Skip to main content

Function: registerUIPanel()

function registerUIPanel(panel: UIPanel): void

Registers a UI panel in the application's UI.

See UIPanel for more details on Panel definition

Parameters

ParameterTypeDescription
panelUIPanelThe UI panel configuration object to be registered

Returns

void

Example

registerUIPanel({
id: 'my-panel',
location: 'right'
component: () => <div style={{ width: '100px', flexShrink: 0 }}>Hello world</div>,
});

Defined in

src/plugin/registry.tsx:1042