Companion

Properties

Link copied to clipboard

A target which returns the element's next sibling.

Link copied to clipboard

A target which returns the current element's parent.

Link copied to clipboard

A target which returns the element's previous sibling.

Functions

Link copied to clipboard

Search an element's ancestors, returning the first match found, if any.

Link copied to clipboard
fun findDescendant(root: HTMLElement? = document.body, matching: (HTMLElement) -> Boolean): ElementTarget

Search all descendants of some root element for the first element matching the passed in condition.

Link copied to clipboard

A direct element target for when you happen to already have access to the target HTMLElement.

Link copied to clipboard
fun withId(elementId: String): ElementTarget

Search globally for an element matching a target ID.