Skip to main content

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