Node Class
Methods
_getEvtTransEndCount
()
private
Determines the number of transitionend-events there will occur
_getTransitionAll
-
transitionProperty
-
[pseudo]
Returns cascaded "transition" style of all transition-properties. Cascaded
means: the actual present style,
the way it is visible (calculated through the DOM-tree).
Note1: When "transition" is set inline, ONLY inline transtition is active! Thus, if parentNode has "transition: width 2s" and inline has "transition: height 3s", then the transition will be "transition: height 3s" --> returning "undefined" for transitionProperty=width. Note2: in case of "transition: all" --> these values will be returned for every "transitionProperty" (even when querying "width")
Parameters:
Returns:
the transition-object, with the properties:
- duration {Number}
- timingFunction {String}
- delay {Number}
addSystemElement
-
content
-
[escape]
-
[silent=true]
Inserts a system-HTMLElement. These are child-Elements, just like other children, but they have a slightly different behaviour:
- They get inserted as the first of the children
- They don't show up when querying
- They retain whenever new content is set for the parent-Element
System-Elements are useful f.e. when you want to add special features to an Element, like scrolling or resizing. You can add helper-elements
(the system-elements) which keep hidden (protected) and retain whenever the Element changes his content.
Parameters:
-
content
Element | ElementArray | Stringcontent to append
-
[escape]
Boolean optionalwhether to insert
escaped
content, leading it into only text inserted -
[silent=true]
Boolean optionalprevent node-mutation events by the Event-module to emit --> defaults TRUE
Returns:
the created Element (or the last when multiple)
Properties
vnode
Vnode
Reference to the vnode-object that represents the Node
(will autogenerate a vnode, should it not exists)