Function onLifecycle

  • Will call {onStart} when the element is added to the DOM. And will call {onRemove} when the element is removed from the DOM.

    Parameters

    • tag: CTag
    • Optional onStart: ((tag) => boolean | Promise<boolean>)
        • (tag): boolean | Promise<boolean>
        • Parameters

          Returns boolean | Promise<boolean>

    • Optional onRemove: ((tag) => void)
        • (tag): void
        • Parameters

          Returns void

    • Optional beforeRemove: ((tag) => boolean | Promise<boolean>)
        • (tag): boolean | Promise<boolean>
        • Parameters

          Returns boolean | Promise<boolean>

    Returns void

Generated using TypeDoc