Appearance
VM Code SDK v2 / StateOption
Type alias: StateOption
StateOption:
object
Represents the state of an element in the DOM.
Type declaration
state?
optionalstate:"attached"|"detached"|"visible"|"hidden"
attached: Element is considered attached when it is part of the DOM.
detached: Element is considered detached when it is not part of the DOM.
visible: Element is considered visible when it has non-empty bounding box and does not have visibility:hidden computed style.
- Elements of zero size are not considered visible.
- Elements with display:none are not considered visible.
- Elements with opacity:0 are considered visible.
hidden: Element is considered hidden when its display is set to hidden.