Skip to main content

Home > @jsplumbtoolkit/dialogs-core

dialogs-core package

Classes

ClassDescription
DialogsBaseSimple dialog library. Created for use in the Toolkit demonstrations.

Functions

FunctionDescription
apply(dataset, el, autoCommitHandler, unresolvedElementSetter)Apply the given object to the given DOM element. This method will find all child elements of el that have a jtk-att attribute set, and then attempt to set the value of any found DOM element with a value extracted from dataset.
attSel(att)
checkValidity(el)

Searches children of the given element to find elements that have a jtk-att set. For each of those, if the checkValidity method is defined, this method executes it. If it returns false, this method returns false. If no elements have checkValidity or no checkValidity() call returns false, this method returns true.

checkValidity is a method defined in input elements and textareas, when a pattern is defined on the element (or if it is marked required and has no valuer set)

clear(els, source)
extract(el, unresolvedElementGetter)Extracts a dataset from the given element by finding child elements that have a jtk-att attribute set, and extracting from those elements their value. When the same jtk-att value appears more than once as a child of el, the values are stored in an array for that field.
extractValueFromElement(el, unresolvedElementGetter)Extract the value represented by the given element.

Interfaces

InterfaceDescription
DialogsOptions
ShowOptionsDefines the allowed options to the show method.

Variables

VariableDescription
Attributes
Classes
DATA_ATTRIBUTE
Elements
Events
Values

Type Aliases

Type AliasDescription
CancelFunction
CloseFunction
CommitFunction
MaybeCloseFunction
OpenFunction