Skip to main content

Home > @jsplumbtoolkit/dialogs-core > DialogsBase

DialogsBase class

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

Signature:

export declare abstract class DialogsBase 

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; }
_positionOverlayListenerEventListenerObject
btnCancelany
btnOkany
buttonsany
cacheRecord<string, { content: string; title: string; cancelable: boolean; el?: any; }>
containerHTMLElement
contentany
currentany
eventManagerEventManager
globalsDialogsGlobals
labelsRecord<string, any>
onCancelCancelFunction
onCloseCloseFunction
onMaybeCloseMaybeCloseFunction
onOKCommitFunction
onOpenOpenFunction
overlayHTMLElement
repositionboolean
templatesRecord<string, 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.
render(templateId, data)
show(params)Show the dialog with the given id, optionally rendering it with some provided data.