DomNode

Wrapper around a DOM node providing query and interaction methods.

Properties

className → String
The class name of this node.
no setter

hashCode → int

The hash code for this object.
no setterinherited

id → String

The id attribute of this node.
no setter

innerHTML → String

The inner HTML of this node.
no setter

jsNode → JSObject

The underlying JS DOM element.
no setter

runtimeType → Type

A representation of the runtime type of the object.
no setterinherited

tagName → String

The tag name of this node (uppercase).
no setter

textContent → String

The text content of this node.
no setter

value → String

The value for input elements.
no setter

Methods

blur() → void
Blurs (unfocuses) this element.

click() → void

Simulates a click event.

dispatchEvent(JSObject event) → void

Dispatches a custom event.

focus() → void

Focuses this element.

getAttribute(String name) → String?

Gets an attribute value.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a nonexistent method or property is accessed.
inherited

querySelector(String selector) → DomNode?

Queries for a single element matching the CSS selector.

querySelectorAll(String selector) → List<DomNode>

Queries for all elements matching the CSS selector.

setAttribute(String name, String value) → void

Sets an attribute value.

toString() → String

A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited