Package-level declarations

Types

Link copied to clipboard
open class DefaultElement(val tab: Tab, var node: DOM.Node, var tree: DOM.Node? = null) : Element

Default implementation of the Element interface.

Link copied to clipboard
interface Element

Represents a DOM element in the browser.

Link copied to clipboard
sealed class NodeOrElement
Link copied to clipboard
class Position(points: List<Double>)

Functions

Link copied to clipboard
inline suspend fun <T> Element.apply(jsFunction: String, awaitPromise: Boolean = false): T?

Applies a JavaScript function to the element and returns the result. The given js_function string should accept the js element as parameter, and can be a arrow function, or function declaration.