ElementHandle
Esta página aún no está disponible en tu idioma.
What a ref on <SizeGuide>, <FitButton> or <FitElement> gives you.
interface ElementHandleMethods
Section titled “Methods”openvoidObligatorioOpens the measuring window.
closevoidObligatoriogetElementTysElement | nullObligatorioThe underlying SDK element (null before mount).
getRecommendationPromise<Recommendation>ObligatorioThe shopper's recommended size once known.
Example
Section titled “Example”const guide = useRef<ElementHandle>(null);
<SizeGuide ref={guide} product="SKU-123" /><button onClick={() => guide.current?.open()}>Size help</button>¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.