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.


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 wait for the network or a file dialog.

void | Promise<void>