Skip to content

elements.getElement()

Method@tryyoursize/sdk

The most recently created element of a type that is still alive, or null.

getElement(type: ElementType): TysElement | null;
type"fit" | "button" | "sizeGuide"Required

The element type.

TysElement | null: The element, or null.

elements.getElement("sizeGuide")?.open();

Was this page helpful?