Skip to main content

ensemble._composition

Classes#

_composition

Base class for ensemble.Compo and ensemble.Snap composition elements.

Constants#

REJECTED_TAGS โ‡’ boolean

Inject an element node inside this composition. Note that any inner element contained will be removed.

Typedefs#

upCallback : function

up callback

_composition#

Base class for ensemble.Compo and ensemble.Snap composition elements.

Kind: global abstract class

_composition.children โ‡’ array#

Getter for children property, intended as children compo of this composition.

Kind: instance property of _composition

_composition.first โ‡’ ensemble.Compo#

Getter for first property, intended as the first compo contained inside of this composition.

Kind: instance property of _composition

_composition.last โ‡’ ensemble.Compo#

Getter for last property, intended as the last compo contained inside of this composition.

Kind: instance property of _composition

_composition._renderer()#

Element renderer.

Kind: instance method of _composition
Todo

  • TODO

_composition.install(root, cb) โ‡’ boolean#

Install the composition.

Kind: instance method of _composition
See: Node.appendChild()

ParamTypeDescription
rootElementA valid Element node
cbfunctionA function callback

_composition.uninstall(root, cb) โ‡’ boolean#

Uninstall the composition.

Kind: instance method of _composition
See: Node.removeChild()

ParamTypeDescription
rootElementA valid Element node
cbfunctionA function callback

_composition.up(pholder, cb) โ‡’ boolean#

Loads the composition replacing a placeholder element.

Kind: instance method of _composition
See: Node.replaceWith()
Todo

  • backward compatibility
ParamTypeDescription
pholderElementA valid Element node
cbupCallbackA function callback

_composition.append(compo) โ‡’ boolean#

Appends a compo inside this composition.

Kind: instance method of _composition
See: Node.appendChild()

ParamTypeDescription
compoensemble.CompoAn ensemble.Compo composition

_composition.prepend(compo) โ‡’ boolean#

Prepends a compo inside this composition.

Kind: instance method of _composition
See: Node.prependChild()

ParamTypeDescription
compoensemble.CompoAn ensemble.Compo composition

_composition.remove(compo) โ‡’ boolean#

Removes a compo from this composition.

Kind: instance method of _composition
See: Node.removeChild()

ParamTypeDescription
compoensemble.CompoAn ensemble.Compo composition

_composition.empty()#

Empty this composition. Any inner element contained will be removed.

Kind: instance method of _composition

REJECTED_TAGS โ‡’ boolean#

Inject an element node inside this composition. Note that any inner element contained will be removed.

Kind: global constant
See: Node.appendChild()

ParamTypeDescription
nodeElementA valid Element node

upCallback : function#

up callback

Kind: global typedef

ParamType
compoensemble.Compo