Skip to content

Vibe coding a plugin? Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

DialogDefinition

A dialog a plugin shows. See PluginContext.showDialog.

draw: DrawFunction


optional height?: number


id: string

Identifies the dialog within its plugin; showing the same id again reuses the dialog. Panels, dialogs and Properties sections share ids, so each needs its own.


optional modal?: boolean

Blocks the rest of Modlumi until the dialog closes.


title: string


optional width?: number

Size when the dialog first opens, in pixels; by default it fits its content.

optional onClose(): void | Promise<void>

Runs when the user closes the dialog with its close button; it may edit the model. Like a ChangeListener, it may be async but can’t await the network or a file dialog.

void | Promise<void>