ensemble.Snap
#
ensemble- ensemble
- ~Snap โ
_composition
- new Snap(ns)
- instance
- ._Symbol.toStringTag โ
string
- ._element(ns)
- ._Symbol.toStringTag โ
- static
- .isSnap() โ
boolean
- .isSnap() โ
- ~Snap โ
_composition
#
ensemble~Snap โ Snap is an empty skeleton composition with shorthands method and utils.
It is a wrapper around a DocumentFragment [DOM]. It could be used as base for abstraction of a custom component element.
Kind: inner class of ensemble
Extends: _composition
- ~Snap โ
_composition
- new Snap(ns)
- instance
- ._Symbol.toStringTag โ
string
- ._element(ns)
- ._Symbol.toStringTag โ
- static
- .isSnap() โ
boolean
- .isSnap() โ
#
new Snap(ns)Constructor method.
Param | Type | Description |
---|---|---|
ns | string | Component namespace |
Example
string
#
snap._Symbol.toStringTag โ Getter for Symbol property, returns the symbolic name for ensemble.Snap class.
Kind: instance property of Snap
See: Symbol.toStringTag
Todo
- return undef
- backward compatibility
#
snap._element(ns)Element wrapper.
Kind: instance method of Snap
See: document.createDocumentFragment()
Param | Type | Description |
---|---|---|
ns | string | Component namespace |
boolean
#
Snap.isSnap() โ Check if passed object is an ensemble.Snap instance.
Kind: static method of Snap
Todo
- backward compatibility