Skip to main content

PromptManager

The PromptManager class orchestrates all spawning of prompts and returning of changed data.

const prompts = new PromptManager(/* options */)

The class accepts an optional options object as a parameter:

PropertyRequiredDefaultDetails
widthNo600Sets the width of the prompt window
baseHeightNo112The minimum height of the window before content. Prompt window is automatically sized-up for content
resizableNofalseAllows the user to resize spawned prompts
promptFileNoelectron-prompts/static/prompt/prompt.htmlSet the html file that will be loaded in the prompt window (docs coming soon)
devModeNofalseEnables verbose logging