Home > @holoflows/kit > DOMProxy_Properties
DOMProxy provide an interface that be stable even dom is changed.
Signature:
export interface DOMProxy_Properties<ProxiedElement extends Node, Before extends Element, After extends Element>
DOMProxy provide 3 nodes. before
, current
and after
. current
is a fake dom node powered by Proxy, it will forward all your operations to the realCurrent
.
before
and after
is a true span
that always point to before and after of realCurrent
Special Handlers:
*forward*: forward to current realCurrent
*undo*: undo effect when realCurrent
changes
*move*: move effect to new realCurrent
- style (forward, undo, move) - addEventListener (forward, undo, move) - appendChild (forward, undo, move)
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
After |
Returns the | |
|
ShadowRoot |
Returns the | |
|
Before |
Returns the | |
|
ShadowRoot |
Returns the | |
|
ProxiedElement |
A proxy that always point to | |
|
boolean | ||
|
Observer for the current node. You need to set callback and init to activate it. | ||
ProxiedElement | null |
The real current of the |
Method |
Description |
---|---|
Destroy the DOMProxy | |
Get weak reference to | |
Get weak reference to | |
Get weak reference to |