elements.getElement()
The most recently created element of a type that is still alive, or null.
getElement(type: ElementType): TysElement | null;Parameters
Section titled “Parameters”type"fit" | "button" | "sizeGuide"RequiredThe element type.
Returns
Section titled “Returns”TysElement | null: The element, or null.
Example
Section titled “Example”elements.getElement("sizeGuide")?.open();Was this page helpful?
Thank you. We read every answer.