API Docs for: 0.0.1
Show:

Node Class

Module: extend-element
Parent Module: vdom

Methods

_getEvtTransEndCount

() private

Defined in src/vdom/partials/extend-element.js:868

Available since 0.0.1

Determines the number of transitionend-events there will occur

_getTransitionAll

(
  • transitionProperty
  • [pseudo]
)
Object private

Defined in src/vdom/partials/extend-element.js:889

Available since 0.0.1

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:

  • transitionProperty String

    transform property that is queried, f.e. "width", or "all"

  • [pseudo] String optional

    to query pseudo-element, fe: :before or :first-line

Returns:

Object:

the transition-object, with the properties:

  • duration {Number}
  • timingFunction {String}
  • delay {Number}

addSystemElement

(
  • content
  • [escape]
  • [silent=true]
)
Element

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 | String

    content to append

  • [escape] Boolean optional

    whether to insert escaped content, leading it into only text inserted

  • [silent=true] Boolean optional

    prevent node-mutation events by the Event-module to emit --> defaults TRUE

Returns:

Element:

the created Element (or the last when multiple)

Properties

vnode

Vnode

Defined in src/vdom/partials/extend-element.js:826

Available since 0.0.1

Reference to the vnode-object that represents the Node

(will autogenerate a vnode, should it not exists)