Skip to main content
zerotal

Documentation


Documentation / @zerotal/devtools / client / DevtoolsPanelPlugin

Interface: DevtoolsPanelPlugin

Defined in: devtools/src/client.ts:215

A panel another package contributes as a tab in the Zerotal devtools.

Properties

id

id: string

Defined in: devtools/src/client.ts:217

Unique id — the tab is addressed internally as plugin:<id>.


title

title: string

Defined in: devtools/src/client.ts:219

Tab label.


badge?

optional badge?: () => string | number | undefined

Defined in: devtools/src/client.ts:221

Optional badge value (e.g. a count); a falsy return hides the badge.

Returns

string | number | undefined


render

render: (el) => void

Defined in: devtools/src/client.ts:223

Render the panel's content into el (the shared, persistent content area).

Parameters

el

HTMLElement

Returns

void