Reference Source
import ModalManager from 'flarum/components/ModalManager.js'
public class | source

ModalManager

Extends:

flarum/Component~Component → ModalManager

The ModalManager component manages a modal dialog. Only one modal dialog can be shown at once; loading a new component into the ModalManager will overwrite the previous one.

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public

close()

Close the modal dialog.

public

config(isInitialized: *, context: *)

public

init()

public

show(component: Modal)

Show a modal dialog.

public

view(): *

Protected Methods
protected

clear()

Clear content from the modal area.

protected

When the modal dialog is ready to be used, tell it!

Public Members

public component: * source

public hideTimeout: * source

public showing: boolean source

Public Methods

public close() source

Close the modal dialog.

public config(isInitialized: *, context: *) source

Params:

NameTypeAttributeDescription
isInitialized *
context *

public init() source

public show(component: Modal) source

Show a modal dialog.

Params:

NameTypeAttributeDescription
component Modal

public view(): * source

Return:

*

Protected Methods

protected clear() source

Clear content from the modal area.

protected onready() source

When the modal dialog is ready to be used, tell it!