ReadonlyasReadonlychildThe child nodes of this node collection as readonly attribute
settable flag for disabled
Readonlyelementsthe underlying form elements as DomQuery object
Readonlyglobalreference to the systems global object (globalThis, window, global, depending on the environment)
Readonlyidreturns the id as settable value (See also ValueEmbedder)
same as innerHTML will be removed once my code is transitioned
inner html property setter and getter which works directly on strings
ReadonlyinputThe value in case of inputs as changeable value
Readonlylazylazy stream representation for this DomQuery
Readonlylengthreturns the length of embedded nodes (top level)
ReadonlynameThe name as changeable value
convenience for dq.id.value to make the code a little tighter
Readonlynodethe node name of the first element
Readonlynoncenonce value if our first root element
Readonlyoffsetaccumulated top element offsetHeight
Readonlyoffsetaccumulated top element offsetLeft
Readonlyoffsetaccumulated top element offsetTop
Readonlyoffsetaccumulated top element offsetWidth
Readonlystreaman early stream representation for this DomQuery
Readonlytagthe tag name of the first element
Readonlytypethe type of the first element
abbreviation for inputValue.value to make the code terser
Readonlyvaluereads the first element if it exists and returns an optional
ReadonlyvaluesAll elements as array
appends a class string if not already in the element(s)
the style class to append
returns the value array< of all elements
find all parents in the hierarchy for which the selector matches
attach shadow elements 1:1 mapping from attach shadow
attr accessor, usage myQuery.attr("class").value = "bla" or let value myQuery.attr("class").value
the attribute to set
the default value in case nothing is presented (defaults to null)
core byId method
the id to search for
OptionalincludeRoot: booleanalso match the root element?
same as byId just for the tag name
OptionalincludeRoot: booleanfires a click event on the underlying dom elements
remove all affected nodes from this query object from the dom tree
detaches a set of nodes from their parent elements in a browser independent manner
DomQuery of nodes with the detached dom nodes
dispatch event on all children just a delegated dispatchEvent from the standard dom working on all queried elements in the monad level
the event to be dispatched
iterate over each element and perform something on the element (Dom element is passed instead of DomQuery)
encodes all input elements properly into respective config entries, this can be used for legacy systems, for newer use-cases, use the HTML5 Form class which all newer browsers provide
OptionaltoMerge: anyoptional config which can be merged in
a copy pf
fires an event
perform an operation on the first element returns a DomQuery on the first element only
returns the nth element as DomQuery from the internal elements note if you try to reach a non-existing element position you will get back an absent entry
the nth index
easy node traversal, you can pass a set of node selectors which are joined as direct children
Note! The root nodes are not in the getIf, those are always the child nodes
global eval head appendix method no other methods are supported anymore
the code to be evaluated
Optionalnonce: stringoptional nonce key for higher security
Runs an eval and keeps the evaluated code in the head This is a corner condition, where we want to update the head with custom code and leave the code in (instead of deleting ig)
the code to be evaluated
Optionalnonce: stringoptional nonce key for higher security
Checks for an existing class in the class attributes
the class to search for
OptionaljoinString: stringabsent no values reached?
checks whether we have a multipart element in our children
should make the code clearer note if you pass a function this refers to the active DomQuery object
OptionalpresentRunnable: (elem?: DomQuery) => voidreturns true if the elements have the tag tagName as tag embedded ( highest level )
perform an operation on the first element returns a DomQuery on the first element only
loads and evaluates a script from a source uri
the source to be loaded and evaluated
in milliseconds execution default (0 == no delay)
in case the DomQuery is pointing to nothing the else value is taken into consideration als alternative
the else value
the same with lazy evaluation for cases where getting the else value is a heavy operation
the else provider function
outerHTML convenience method browsers only support innerHTML but for instance for your jsf.js we have a full replace pattern which needs outerHTML processing
OptionalrunEmbeddedScripts: booleanOptionalrunEmbeddedCss: booleanthe parent of the elements
query selector all on the existing dom query object
the standard selector
a DomQuery with the results
closest, walks up the dom tree to fid the closest element to match
the standard selector
a DomQuery with the results
runs the embedded css
Run through the given nodes in the DomQuery execute the inline scripts
Optionalsticky: booleanif set to true the element must be left in the head after eval default === false
OptionalwhiteListed: (val: string) => booleanstyle accessor
the default value in case nothing is presented (defaults to null)
OptionaljoinString: string
transform this node collection to an array