Type aliases
AddRemEvents
AddRemEvents: "added-element" | "removed-element" | "removing-element"
AddedElementHandler
AddedElementHandler: function
Type declaration
-
- (root: Node, parent: Node, previousSibling: Node, nextSibling: Node, element: Element): void
-
Parameters
-
root: Node
-
parent: Node
-
previousSibling: Node
-
nextSibling: Node
-
element: Element
Returns void
AttributeChangedHandler
AttributeChangedHandler: function
Type declaration
-
- (root: Node, element: Element, ns: string, name: string, oldValue: string): void
-
Parameters
-
root: Node
-
element: Element
-
ns: string
-
name: string
-
oldValue: string
Returns void
ChildEvents
ChildEvents: "children-changing" | "children-changed"
ChildrenChangedHandler
ChildrenChangedHandler: function
Type declaration
-
- (root: Node, added: Node[], removed: Node[], previousSibling: Node | null, nextSibling: Node | null, element: Element): void
-
Parameters
-
root: Node
-
added: Node[]
-
removed: Node[]
-
previousSibling: Node | null
-
nextSibling: Node | null
-
element: Element
Returns void
ChildrenChangingHandler
ChildrenChangingHandler: function
Type declaration
-
- (root: Node, added: Node[], removed: Node[], previousSibling: Node | null, nextSibling: Node | null, element: Element): void
-
Parameters
-
root: Node
-
added: Node[]
-
removed: Node[]
-
previousSibling: Node | null
-
nextSibling: Node | null
-
element: Element
Returns void
EventHandlerMap
EventHandlerMap: object
Events
Events: keyof EventHandlers
EventsOrTrigger
EventsOrTrigger: keyof Handlers
ExcludedElementHandler
ExcludedElementHandler: function
Type declaration
-
- (root: Node, tree: Node, parent: null, previousSibling: null, nextSibling: null, element: Element): void
-
Parameters
-
root: Node
-
tree: Node
-
parent: null
-
previousSibling: null
-
nextSibling: null
-
element: Element
Returns void
ExcludingElementHandler
ExcludingElementHandler: function
Type declaration
-
- (root: Node, tree: Node, parent: null, previousSibling: null, nextSibling: null, element: Element): void
-
Parameters
-
root: Node
-
tree: Node
-
parent: null
-
previousSibling: null
-
nextSibling: null
-
element: Element
Returns void
Handler
Handler: function
IncludeExcludeEvents
IncludeExcludeEvents: "included-element" | "excluded-element" | "excluding-element"
IncludedElementHandler
IncludedElementHandler: function
Type declaration
-
- (root: Node, tree: Node, parent: Node, previousSibling: Node | null, nextSibling: Node | null, element: Element): void
-
Parameters
-
root: Node
-
tree: Node
-
parent: Node
-
previousSibling: Node | null
-
nextSibling: Node | null
-
element: Element
Returns void
RemovedElementHandler
RemovedElementHandler: function
Type declaration
-
- (root: Node, parent: null, previousSibling: null, nextSibling: null, element: Element): void
-
Parameters
-
root: Node
-
parent: null
-
previousSibling: null
-
nextSibling: null
-
element: Element
Returns void
RemovingElementHandler
RemovingElementHandler: function
Type declaration
-
- (root: Node, parent: Node, previousSibling: Node, nextSibling: Node, element: Element): void
-
Parameters
-
root: Node
-
parent: Node
-
previousSibling: Node
-
nextSibling: Node
-
element: Element
Returns void
SelectorHandlerPair
SelectorHandlerPair: [string, H]
TextChangedHandler
TextChangedHandler: function
Type declaration
-
- (root: Node, node: Text, oldValue: string): void
-
Parameters
-
root: Node
-
node: Text
-
oldValue: string
Returns void
TriggerHandler
TriggerHandler: function
Called when an element has been directly added to the tree. There is no reason to provide
parent
,previousSibling
,nextSibling
for anadded-element
event but having the same signature for additions and removals allows use of the same function for both cases.The root of the tree being listened on.
The parent of the element that was added.
The sibling that precedes the element.
The sibling that follows the element.
The element that was matched.