Skip to content

Universal DevTools Kit SDK


Universal DevTools Kit SDK / @u-devtools/kit / / AppPluginDefinition

Interface: AppPluginDefinition ​

Defined in: index.ts:40

Properties ​

commands? ​

optional commands: object[]

Defined in: index.ts:66

Declarative commands

action() ​

action: (ctx) => void | Promise<void>

Parameters ​
ParameterType
ctxAppContext
Returns ​

void | Promise<void>

icon? ​

optional icon: string

id ​

id: string

label ​

label: string

shortcut? ​

optional shortcut: string[]


component? ​

optional component: Component

Defined in: index.ts:44

Vue component that will be rendered in the plugins layer (on top of the page)


optional menu: object

Defined in: index.ts:55

Declarative menu (required for plugins with UI in overlay)

action? ​

optional action: string | (ctx) => void

icon ​

icon: string

id ​

id: string

label ​

label: string

order? ​

optional order: number


setup()? ​

optional setup: (context) => void | Promise<void>

Defined in: index.ts:50

Setup function (executed once on startup) Here you can attach global listeners or register menu items

Parameters ​

ParameterType
contextAppContext

Returns ​

void | Promise<void>

Released under the MIT License.