Class: module:argos/Dialogs/Modal

module:argos/Dialogs/Modal()

new module:argos/Dialogs/Modal()

Extends:
Source:

Extends

Members

buttonTemplate

Simplate that returns a button

Source:

Methods

add(content:, toolbarActions:)

Used to change the content of the modal node (aka what is displayed) Modals can only show one at a time and will be centered on the screen

Parameters:
Name Type Description
content:

object representing the current content of the modal

toolbarActions:

array of actions to make up the modal toolbar using buttonTemplate. In order to get the promise data you must pass an item with action 'resolve' To hide the modal pass a toolbar item with action 'cancel'

Source:

buildRendering()

Processes this.widgetTemplate or this.contentTemplate

Inherited From:
Source:

hide()

Hide the modalContainer to avoid capturing events

Source: