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
#
_compositionBase class for ensemble.Compo and ensemble.Snap composition elements.
Kind: global abstract class
- _composition
- .children โ
array
- .first โ
ensemble.Compo
- .last โ
ensemble.Compo
- ._renderer()
- .install(root, cb) โ
boolean
- .uninstall(root, cb) โ
boolean
- .up(pholder, cb) โ
boolean
- .append(compo) โ
boolean
- .prepend(compo) โ
boolean
- .remove(compo) โ
boolean
- .empty()
- .children โ
array
#
_composition.children โ Getter for children property, intended as children compo of this composition.
Kind: instance property of _composition
ensemble.Compo
#
_composition.first โ Getter for first property, intended as the first compo contained inside of this composition.
Kind: instance property of _composition
ensemble.Compo
#
_composition.last โ 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
boolean
#
_composition.install(root, cb) โ Install the composition.
Kind: instance method of _composition
See: Node.appendChild()
Param | Type | Description |
---|---|---|
root | Element | A valid Element node |
cb | function | A function callback |
boolean
#
_composition.uninstall(root, cb) โ Uninstall the composition.
Kind: instance method of _composition
See: Node.removeChild()
Param | Type | Description |
---|---|---|
root | Element | A valid Element node |
cb | function | A function callback |
boolean
#
_composition.up(pholder, cb) โ Loads the composition replacing a placeholder element.
Kind: instance method of _composition
See: Node.replaceWith()
Todo
- backward compatibility
Param | Type | Description |
---|---|---|
pholder | Element | A valid Element node |
cb | upCallback | A function callback |
boolean
#
_composition.append(compo) โ Appends a compo inside this composition.
Kind: instance method of _composition
See: Node.appendChild()
Param | Type | Description |
---|---|---|
compo | ensemble.Compo | An ensemble.Compo composition |
boolean
#
_composition.prepend(compo) โ Prepends a compo inside this composition.
Kind: instance method of _composition
See: Node.prependChild()
Param | Type | Description |
---|---|---|
compo | ensemble.Compo | An ensemble.Compo composition |
boolean
#
_composition.remove(compo) โ Removes a compo from this composition.
Kind: instance method of _composition
See: Node.removeChild()
Param | Type | Description |
---|---|---|
compo | ensemble.Compo | An ensemble.Compo composition |
#
_composition.empty()Empty this composition. Any inner element contained will be removed.
Kind: instance method of _composition
boolean
#
REJECTED_TAGS โ Inject an element node inside this composition. Note that any inner element contained will be removed.
Kind: global constant
See: Node.appendChild()
Param | Type | Description |
---|---|---|
node | Element | A valid Element node |
function
#
upCallback : up callback
Kind: global typedef
Param | Type |
---|---|
compo | ensemble.Compo |