UMD Web Components Library
    Preparing search index...

    Interface ComponentRef

    Component reference type Duplicates ElementRef structure to avoid type alias issues

    interface ComponentRef {
        element: HTMLElement | DocumentFragment;
        events?: {
            destroy?: () => void;
            load?: () => void;
            recalculate?: () => void;
            resize?: () => void;
            [key: string]: any;
        };
        styles?: string;
    }
    Index

    Properties

    element: HTMLElement | DocumentFragment

    The DOM element or fragment

    events?: {
        destroy?: () => void;
        load?: () => void;
        recalculate?: () => void;
        resize?: () => void;
        [key: string]: any;
    }

    Component events/methods

    styles?: string

    Component styles