Home > @jsplumbtoolkit/browser-ui > DialogsBase
DialogsBase class
Simple dialog library. Created for use in the Toolkit demonstrations.
Signature:
export declare abstract class DialogsBase
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(params) | Initialize all the dialogs found on the page. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
_positioners | { x: (docElem: any, isBody: boolean, s: Size) => void; y: (docElem: any, isBody: boolean, s: Size) => void; } | ||
_positionOverlayListener | EventListenerObject | ||
btnCancel | any | ||
btnOk | any | ||
buttons | any | ||
cache | Record<string, { content: string; title: string; cancelable: boolean; el?: any; }> | ||
container | HTMLElement | ||
content | any | ||
current | any | ||
eventManager | EventManager | ||
globals | DialogsGlobals | ||
labels | Record<string, any> | ||
onCancel | CancelFunction | ||
onClose | CloseFunction | ||
onMaybeClose | MaybeCloseFunction | ||
onOK | CommitFunction | ||
onOpen | OpenFunction | ||
overlay | HTMLElement | ||
reposition | boolean | ||
templates | Record<string, string> | ||
title | any | ||
underlay | any | ||
visible | boolean |
Methods
Method | Modifiers | Description |
---|---|---|
_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. |