Skip to content

Documentation / @ripl/dom / ReconcilerOptions

Interface: ReconcilerOptions<TElement>

Defined in: dom/src/vdom.ts:22

Configuration for the DOM reconciler, providing element lifecycle callbacks and filtering.

Type Parameters

Type ParameterDefault type
TElementunknown

Properties

PropertyTypeDescriptionDefined in
createElement(tag, id) => ElementCreates a DOM element for the given tag and id.dom/src/vdom.ts:24
excludeSelectors?string[]CSS selectors for existing DOM children to leave untouched during reconciliation.dom/src/vdom.ts:30
getChildId?(domNode) => string | nullResolves the reconciliation id of a DOM child (defaults to its id attribute).dom/src/vdom.ts:32
getElementTag(element) => stringResolves the DOM tag name to use for a source element.dom/src/vdom.ts:28
updateElement(domNode, element) => voidApplies a source element's state to its backing DOM node.dom/src/vdom.ts:26