Thankly SDK for JavaScript
    Preparing search index...

    Interface VirtualTryOnWidget

    An imperative handle to a mounted virtual try-on widget.

    interface VirtualTryOnWidget {
        getState(): VirtualTryOnState;
        mount(target: string | HTMLElement): void;
        off(event: string, handler: Function): void;
        on(
            event: "error" | "complete" | "stateChange",
            handler: Function,
        ): () => void;
        reset(): void;
        setState(state: Partial<VirtualTryOnState>): void;
        unmount(): void;
    }
    Index