Skip to main content

Home > @jsplumbtoolkit/dialogs > Dialogs

Dialogs class#

Simple dialog library. Created for use in the Toolkit demonstrations.

Signature:

export declare class Dialogs 

Constructors#

ConstructorModifiersDescription
(constructor)(params)Initialize all the dialogs found on the page.

Properties#

PropertyModifiersTypeDescription
_positioners{ x: (docElem: any, isBody: boolean, s: Size) => void; y: (docElem: any, isBody: boolean, s: Size) => void; }
_rotorsKnockle
btnCancelany
btnOkany
buttonsany
cacheDictionary<{ content: string; title: string; cancelable: boolean; el?: any; }>
containerHTMLElement
contentany
currentany
eventManagerEventManager
globalsDialogsGlobals
labelsRecord<string, any>
onCancelCancelFunction
onCloseCloseFunction
onMaybeCloseMaybeCloseFunction
onOKCommitFunction
onOpenOpenFunction
overlayHTMLElement
repositionboolean
templatesDictionary<string>
titleany
underlayany
visibleboolean

Methods#

MethodModifiersDescription
_close(wasCancelled)
apply(data, el)applies the given data object to the given element, using jtk-att as the match attributes
clear(els, source)Clears the given set
extract(el)extracts a data object from the given element, using jtk-att as the match attributes
hide()Hide the current dialog as if the cancel button was pressed.
show(params)Show the dialog with the given id, optionally rendering it with some provided data.