DialogDefinition
A dialog a plugin shows. See PluginContext.showDialog.
Properties
Section titled “Properties”draw:
DrawFunction
height?
Section titled “height?”
optionalheight?:number
id:
string
Identifies the dialog within its plugin; showing the same id again reuses the dialog.
modal?
Section titled “modal?”
optionalmodal?:boolean
Blocks the rest of Modlumi until the dialog closes.
title:
string
width?
Section titled “width?”
optionalwidth?:number
Size when the dialog first opens, in pixels; by default it fits its content.
Methods
Section titled “Methods”onClose()?
Section titled “onClose()?”
optionalonClose():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.
Returns
Section titled “Returns”void | Promise<void>