Modal class
Signature:
export class Modal implements CloseableComponent
Implements: CloseableComponent
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(app) | Constructs a new instance of the Modal class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
app | App | ||
containerEl | HTMLElement | ||
contentEl | HTMLElement | ||
modalEl | HTMLElement | ||
scope | Scope | ||
shouldRestoreSelection | boolean | ||
titleEl | HTMLElement |
Methods
Method | Modifiers | Description |
---|---|---|
close() | Hide the modal. | |
onClose() | ||
onOpen() | ||
open() | Show the modal on the the active window. On mobile, the modal will animate on screen. | |
setContent(content) | ||
setTitle(title) |