Attachable
Interface for objects that can be attached to and detached from DOM elements.
Sinceβ
2.0.0
Propertiesβ
isAttached: booleanβ
Whether the object is currently attached to an element.
Methodsβ
attachTo()β
Attaches the object to the specified element.
element:
EventTarget
Returns:void
detach()β
Detaches the object from its current element.
Returnsβ
void
destroy()β
Destroys the object and releases all resources.
Returnsβ
void