BodyElement class - dart:html library (original) (raw)

Inheritance

Implemented types

Annotations

Constructors

BodyElement()

factory

BodyElement.created()

Constructor instantiated by the DOM when a custom element has been created.

Properties

accessibleNodeAccessibleNode?

no setterinherited

assignedSlotSlotElement?

no setterinherited

attributesMap<String, String>

All attributes on this element.

getter/setter pairinherited

baseUriString?

no setterinherited

borderEdgeCssRect

Access the dimensions and position of this element's content + padding + border box.

no setterinherited

childNodesList<Node>

A list of this node's children.

no setterinherited

childrenList<Element>

List of the direct children of this element.

getter/setter pairinherited

classesCssClassSet

The set of CSS classes applied to this element.

getter/setter pairinherited

classNameString

getter/setter pairinherited

clientRectangle<num>

Gets the position of this element relative to the client area of the page.

no setterinherited

clientHeightint

no setterinherited

clientLeftint?

no setterinherited

clientTopint?

no setterinherited

clientWidthint

no setterinherited

computedNameString?

no setterinherited

computedRoleString?

no setterinherited

contentEdgeCssRect

Access this element's content position.

no setterinherited

contentEditableString

getter/setter pairinherited

datasetMap<String, String>

Allows access to all custom data attributes (data-*) set on this element.

getter/setter pairinherited

dirString?

getter/setter pairinherited

documentOffsetPoint<num>

Provides the coordinates of the element relative to the top of the document.

no setterinherited

draggablebool

Indicates whether the element can be dragged and dropped.

getter/setter pairinherited

firstChildNode?

The first child of this node.

no setterinherited

hashCodeint

The hash code for this object.

no setterinherited

hiddenbool

Indicates whether the element is not relevant to the page's current state.

getter/setter pairinherited

idString

getter/setter pairinherited

inertbool?

getter/setter pairinherited

innerHtmlString?

Parses the HTML fragment and sets it as the contents of this element.

getter/setter pairinherited

innerTextString

getter/setter pairinherited

inputModeString?

getter/setter pairinherited

isConnectedbool?

no setterinherited

isContentEditablebool?

no setterinherited

langString?

getter/setter pairinherited

lastChildNode?

The last child of this node.

no setterinherited

localNameString

no setterinherited

marginEdgeCssRect

Access the dimensions and position of this element's content + padding + border + margin box.

no setterinherited

namespaceUriString?

A URI that identifies the XML namespace of this element.

no setterinherited

nextElementSiblingElement?

no setterinherited

nextNodeNode?

The next sibling node.

no setterinherited

nodeNameString?

The name of this node.

no setterinherited

nodesList<Node>

A modifiable list of this node's children.

getter/setter pairinherited

nodeTypeint

The type of node.

no setterinherited

nodeValueString?

The value of this node.

no setterinherited

nonceString?

getter/setter pairinherited

offsetRectangle<num>

Gets the offset of this element relative to its offsetParent.

no setterinherited

offsetHeightint

no setterinherited

offsetLeftint

no setterinherited

offsetParentElement?

no setterinherited

offsetTopint

no setterinherited

offsetWidthint

no setterinherited

onElementEvents

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

no setterinherited

onAbortElementStream<Event>

Stream of abort events handled by this Element.

no setterinherited

onBeforeCopyElementStream<Event>

Stream of beforecopy events handled by this Element.

no setterinherited

onBeforeCutElementStream<Event>

Stream of beforecut events handled by this Element.

no setterinherited

onBeforePasteElementStream<Event>

Stream of beforepaste events handled by this Element.

no setterinherited

onBlurElementStream<Event>

Stream of blur events handled by this BodyElement.

no setteroverride

onCanPlayElementStream<Event>

no setterinherited

onCanPlayThroughElementStream<Event>

no setterinherited

onChangeElementStream<Event>

Stream of change events handled by this Element.

no setterinherited

onClickElementStream<MouseEvent>

Stream of click events handled by this Element.

no setterinherited

Stream of contextmenu events handled by this Element.

no setterinherited

onCopyElementStream<ClipboardEvent>

Stream of copy events handled by this Element.

no setterinherited

onCutElementStream<ClipboardEvent>

Stream of cut events handled by this Element.

no setterinherited

onDoubleClickElementStream<Event>

Stream of doubleclick events handled by this Element.

no setterinherited

onDragElementStream<MouseEvent>

A stream of drag events fired when this element currently being dragged.

no setterinherited

onDragEndElementStream<MouseEvent>

A stream of dragend events fired when this element completes a drag operation.

no setterinherited

onDragEnterElementStream<MouseEvent>

A stream of dragenter events fired when a dragged object is first dragged over this element.

no setterinherited

onDragLeaveElementStream<MouseEvent>

A stream of dragleave events fired when an object being dragged over this element leaves this element's target area.

no setterinherited

onDragOverElementStream<MouseEvent>

A stream of dragover events fired when a dragged object is currently being dragged over this element.

no setterinherited

onDragStartElementStream<MouseEvent>

A stream of dragstart events fired when this element starts being dragged.

no setterinherited

onDropElementStream<MouseEvent>

A stream of drop events fired when a dragged object is dropped on this element.

no setterinherited

onDurationChangeElementStream<Event>

no setterinherited

onEmptiedElementStream<Event>

no setterinherited

onEndedElementStream<Event>

no setterinherited

onErrorElementStream<Event>

Stream of error events handled by this BodyElement.

no setteroverride

onFocusElementStream<Event>

Stream of focus events handled by this BodyElement.

no setteroverride

onFullscreenChangeElementStream<Event>

Stream of fullscreenchange events handled by this Element.

no setterinherited

onFullscreenErrorElementStream<Event>

Stream of fullscreenerror events handled by this Element.

no setterinherited

onHashChangeElementStream<Event>

Stream of hashchange events handled by this BodyElement.

no setteroverride

onInputElementStream<Event>

Stream of input events handled by this Element.

no setterinherited

onInvalidElementStream<Event>

Stream of invalid events handled by this Element.

no setterinherited

onKeyDownElementStream<KeyboardEvent>

Stream of keydown events handled by this Element.

no setterinherited

onKeyPressElementStream<KeyboardEvent>

Stream of keypress events handled by this Element.

no setterinherited

onKeyUpElementStream<KeyboardEvent>

Stream of keyup events handled by this Element.

no setterinherited

onLoadElementStream<Event>

Stream of load events handled by this BodyElement.

no setteroverride

onLoadedDataElementStream<Event>

no setterinherited

onLoadedMetadataElementStream<Event>

no setterinherited

onMessageElementStream<MessageEvent>

Stream of message events handled by this BodyElement.

no setteroverride

onMouseDownElementStream<MouseEvent>

Stream of mousedown events handled by this Element.

no setterinherited

onMouseEnterElementStream<MouseEvent>

Stream of mouseenter events handled by this Element.

no setterinherited

onMouseLeaveElementStream<MouseEvent>

Stream of mouseleave events handled by this Element.

no setterinherited

onMouseMoveElementStream<MouseEvent>

Stream of mousemove events handled by this Element.

no setterinherited

onMouseOutElementStream<MouseEvent>

Stream of mouseout events handled by this Element.

no setterinherited

onMouseOverElementStream<MouseEvent>

Stream of mouseover events handled by this Element.

no setterinherited

onMouseUpElementStream<MouseEvent>

Stream of mouseup events handled by this Element.

no setterinherited

onMouseWheelElementStream<WheelEvent>

Stream of mousewheel events handled by this Element.

no setterinherited

onOfflineElementStream<Event>

Stream of offline events handled by this BodyElement.

no setteroverride

onOnlineElementStream<Event>

Stream of online events handled by this BodyElement.

no setteroverride

onPasteElementStream<ClipboardEvent>

Stream of paste events handled by this Element.

no setterinherited

onPauseElementStream<Event>

no setterinherited

onPlayElementStream<Event>

no setterinherited

onPlayingElementStream<Event>

no setterinherited

onPopStateElementStream<PopStateEvent>

Stream of popstate events handled by this BodyElement.

no setteroverride

onRateChangeElementStream<Event>

no setterinherited

onResetElementStream<Event>

Stream of reset events handled by this Element.

no setterinherited

onResizeElementStream<Event>

Stream of resize events handled by this BodyElement.

no setteroverride

onScrollElementStream<Event>

Stream of scroll events handled by this Element.

no setteroverride

onSearchElementStream<Event>

Stream of search events handled by this Element.

no setterinherited

onSeekedElementStream<Event>

no setterinherited

onSeekingElementStream<Event>

no setterinherited

onSelectElementStream<Event>

Stream of select events handled by this Element.

no setterinherited

onSelectStartElementStream<Event>

Stream of selectstart events handled by this Element.

no setterinherited

onStalledElementStream<Event>

no setterinherited

onStorageElementStream<StorageEvent>

Stream of storage events handled by this BodyElement.

no setteroverride

onSubmitElementStream<Event>

Stream of submit events handled by this Element.

no setterinherited

onSuspendElementStream<Event>

no setterinherited

onTimeUpdateElementStream<Event>

no setterinherited

onTouchCancelElementStream<TouchEvent>

Stream of touchcancel events handled by this Element.

no setterinherited

onTouchEndElementStream<TouchEvent>

Stream of touchend events handled by this Element.

no setterinherited

onTouchEnterElementStream<TouchEvent>

Stream of touchenter events handled by this Element.

no setterinherited

onTouchLeaveElementStream<TouchEvent>

Stream of touchleave events handled by this Element.

no setterinherited

onTouchMoveElementStream<TouchEvent>

Stream of touchmove events handled by this Element.

no setterinherited

onTouchStartElementStream<TouchEvent>

Stream of touchstart events handled by this Element.

no setterinherited

onTransitionEndElementStream<TransitionEvent>

Stream of transitionend events handled by this Element.

no setterinherited

onUnloadElementStream<Event>

Stream of unload events handled by this BodyElement.

no setteroverride

onVolumeChangeElementStream<Event>

no setterinherited

onWaitingElementStream<Event>

no setterinherited

onWheelElementStream<WheelEvent>

no setterinherited

outerHtmlString?

no setterinherited

ownerDocumentDocument?

The document this node belongs to.

no setterinherited

paddingEdgeCssRect

Access the dimensions and position of this element's content + padding box.

no setterinherited

parentElement?

The parent element of this node.

no setterinherited

parentNodeNode?

The parent node of this node.

no setterinherited

previousElementSiblingElement?

no setterinherited

previousNodeNode?

The previous sibling node.

no setterinherited

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

scrollHeightint

no setterinherited

scrollLeftint

getter/setter pairinherited

scrollTopint

getter/setter pairinherited

scrollWidthint

no setterinherited

shadowRootShadowRoot?

The shadow root of this shadow host.

no setterinherited

slotString?

getter/setter pairinherited

spellcheckbool?

getter/setter pairinherited

styleCssStyleDeclaration

no setterinherited

styleMapStylePropertyMap?

no setterinherited

tabIndexint?

getter/setter pairinherited

tagNameString

no setterinherited

textString?

All text within this node and its descendants.

getter/setter pairinherited

titleString?

getter/setter pairinherited

translatebool?

Specifies whether this element's text content changes when the page is localized.

getter/setter pairinherited

Methods

addEventListener(String type, EventListener? listener, [bool? useCapture])→ void

inherited

after(Object nodes)→ void

inherited

animate(Iterable<Map<String, dynamic>> frames, [dynamic timing])→ Animation

Creates a new AnimationEffect object whose target element is the object on which the method is called, and calls the play() method of the AnimationTimeline object of the document timeline of the node document of the element, passing the newly created AnimationEffect as the argument to the method. Returns an Animation for the effect.

inherited

append(Node node)→ Node

Adds a node to the end of the child nodes list of this node.

inherited

appendHtml(String text, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer})→ void

Parses the specified text as HTML and adds the resulting node after the last child of this element.

inherited

appendText(String text)→ void

Adds the specified text after the last child of this element.

inherited

attached()→ void

Called by the DOM when this element has been inserted into the live document.

inherited

attachShadow(Map shadowRootInitDict)→ ShadowRoot

inherited

attributeChanged(String name, String oldValue, String newValue)→ void

Called by the DOM whenever an attribute on this has been changed.

inherited

before(Object nodes)→ void

inherited

blur()→ void

inherited

click()→ void

inherited

clone(bool? deep)→ Node

Returns a copy of this node.

inherited

closest(String selectors)→ Element?

inherited

contains(Node? other)→ bool

Returns true if this node contains the specified node.

inherited

createFragment(String? html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer})→ DocumentFragment

Create a DocumentFragment from the HTML fragment and ensure that it follows the sanitization rules specified by the validator or treeSanitizer.

inherited

createShadowRoot()→ ShadowRoot

Creates a new shadow root for this shadow host.

inherited

detached()→ void

Called by the DOM when this element has been removed from the live document.

inherited

dispatchEvent(Event event)→ bool

inherited

enteredView()→ void

Deprecated*: override attached instead.

inherited

focus()→ void

inherited

getAnimations()→ List<Animation>

inherited

getAttribute(String name)→ String?

inherited

getAttributeNames()→ List<String>

inherited

getAttributeNS(String? namespaceURI, String name)→ String?

inherited

getBoundingClientRect()→ Rectangle<num>

Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.

inherited

getClientRects()→ List<Rectangle<num>>

inherited

getComputedStyle([String? pseudoElement])→ CssStyleDeclaration

The set of all CSS values applied to this element, including inherited and default values.

inherited

getDestinationInsertionPoints()→ List<Node>

Returns a list of shadow DOM insertion points to which this element is distributed.

inherited

getElementsByClassName(String classNames)→ List<Node>

Returns a list of nodes with the given class name inside this element.

inherited

getNamespacedAttributes(String namespace)→ Map<String, String>

Gets a map for manipulating the attributes of a particular namespace.

inherited

getRootNode([Map? options])→ Node

inherited

hasAttribute(String name)→ bool

inherited

hasAttributeNS(String? namespaceURI, String name)→ bool

inherited

hasChildNodes()→ bool

Returns true if this node has any children.

inherited

hasPointerCapture(int pointerId)→ bool

inherited

insertAdjacentElement(String where, Element element)→ Element

Inserts element into the DOM at the specified location.

inherited

insertAdjacentHtml(String where, String html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer})→ void

Parses text as an HTML fragment and inserts it into the DOM at the specified location.

inherited

insertAdjacentText(String where, String text)→ void

Inserts text into the DOM at the specified location.

inherited

insertAllBefore(Iterable<Node> newNodes, Node child)→ void

Inserts all of the nodes into this node directly before child.

inherited

insertBefore(Node node, Node? child)→ Node

Inserts the given node into this node directly before child. If child is null, then the given node is inserted at the end of this node's child nodes.

inherited

leftView()→ void

Deprecated*: override detached instead.

inherited

matches(String selectors)→ bool

Checks if this element matches the CSS selectors.

inherited

matchesWithAncestors(String selectors)→ bool

Checks if this element or any of its parents match the CSS selectors.

inherited

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

offsetTo(Element parent)→ Point<num>

Provides the offset of this element's borderEdge relative to the specified parent.

inherited

querySelector(String selectors)→ Element?

Finds the first descendant element of this element that matches the specified group of selectors.

inherited

querySelectorAll<T extends Element>(String selectors)→ ElementList<T>

Finds all descendent elements of this element that match the specified group of selectors.

inherited

releasePointerCapture(int pointerId)→ void

inherited

remove()→ void

Removes this node from the DOM.

inherited

removeAttribute(String name)→ void

inherited

removeAttributeNS(String? namespaceURI, String name)→ void

inherited

removeEventListener(String type, EventListener? listener, [bool? useCapture])→ void

inherited

replaceWith(Node otherNode)→ Node

Replaces this node with another node.

inherited

requestFullscreen([Map? options])→ Future<void>

Displays this element fullscreen.

inherited

requestPointerLock()→ void

inherited

scroll([dynamic options_OR_x, num? y])→ void

inherited

scrollBy([dynamic options_OR_x, num? y])→ void

inherited

scrollIntoView([ScrollAlignment? alignment])→ void

Scrolls this element into view.

inherited

scrollIntoViewIfNeeded([bool? centerIfNeeded])→ void

Nonstandard version of scrollIntoView that scrolls the current element into the visible area of the browser window if it's not already within the visible area of the browser window. If the element is already within the visible area of the browser window, then no scrolling takes place.

inherited

scrollTo([dynamic options_OR_x, num? y])→ void

inherited

setApplyScroll(String nativeScrollBehavior)→ Future<ScrollState>

inherited

setAttribute(String name, Object value)→ void

inherited

setAttributeNS(String? namespaceURI, String name, Object value)→ void

inherited

setDistributeScroll(String nativeScrollBehavior)→ Future<ScrollState>

inherited

setInnerHtml(String? html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer})→ void

Parses the HTML fragment and sets it as the contents of this element. This ensures that the generated content follows the sanitization rules specified by the validator or treeSanitizer.

inherited

setPointerCapture(int pointerId)→ void

inherited

toString()→ String

The string representation of this element.

inherited

Operators

operator ==(Object other)→ bool

The equality operator.

inherited

Constants

blurEvent → const EventStreamProvider<Event>

Static factory designed to expose blur events to event handlers that are not necessarily instances of BodyElement.

errorEvent → const EventStreamProvider<Event>

Static factory designed to expose error events to event handlers that are not necessarily instances of BodyElement.

focusEvent → const EventStreamProvider<Event>

Static factory designed to expose focus events to event handlers that are not necessarily instances of BodyElement.

hashChangeEvent → const EventStreamProvider<Event>

Static factory designed to expose hashchange events to event handlers that are not necessarily instances of BodyElement.

loadEvent → const EventStreamProvider<Event>

Static factory designed to expose load events to event handlers that are not necessarily instances of BodyElement.

messageEvent → const EventStreamProvider<MessageEvent>

Static factory designed to expose message events to event handlers that are not necessarily instances of BodyElement.

offlineEvent → const EventStreamProvider<Event>

Static factory designed to expose offline events to event handlers that are not necessarily instances of BodyElement.

onlineEvent → const EventStreamProvider<Event>

Static factory designed to expose online events to event handlers that are not necessarily instances of BodyElement.

popStateEvent → const EventStreamProvider<PopStateEvent>

Static factory designed to expose popstate events to event handlers that are not necessarily instances of BodyElement.

resizeEvent → const EventStreamProvider<Event>

Static factory designed to expose resize events to event handlers that are not necessarily instances of BodyElement.

scrollEvent → const EventStreamProvider<Event>

storageEvent → const EventStreamProvider<StorageEvent>

Static factory designed to expose storage events to event handlers that are not necessarily instances of BodyElement.

unloadEvent → const EventStreamProvider<Event>

Static factory designed to expose unload events to event handlers that are not necessarily instances of BodyElement.