x4js - v2.2.49
    Preparing search index...

    Function wrapDOM

    • Wraps an existing HTMLElement with a new Component instance. If the HTMLElement already has an associated Component, that instance is returned. Otherwise, a new Component is created to manage the existing DOM element.

      Parameters

      • el: HTMLElement

        The HTMLElement to wrap.

      Returns Component

      A Component instance managing the provided HTMLElement.