ElementList abstract class
An immutable list containing HTML elements. This list contains some additional methods when compared to regular lists for ease of CSS manipulation on a group of elements.
Constructors
Properties
- borderEdge → CssRect @Experimental(), read-only
-
Access dimensions and position of the first Element's content + padding + border box in this list.
- classes → CssClassSet read / write
-
The union of all CSS classes applied to the elements in this list.
- contentEdge → CssRect @Experimental(), read-only
-
Access dimensions and position of the Elements in this list.
- marginEdge → CssRect @Experimental(), read-only
-
Access dimensions and position of the first Element's content + padding + border + margin box in this list.
- onAbort → ElementStream<Event> @DocsEditable(), @DomName('Element.onabort'), read-only
-
Stream of
abort
events handled by thisElement
. - onBeforeCopy → ElementStream<Event> @DocsEditable(), @DomName('Element.onbeforecopy'), read-only
-
Stream of
beforecopy
events handled by thisElement
. - onBeforeCut → ElementStream<Event> @DocsEditable(), @DomName('Element.onbeforecut'), read-only
-
Stream of
beforecut
events handled by thisElement
. - onBeforePaste → ElementStream<Event> @DocsEditable(), @DomName('Element.onbeforepaste'), read-only
-
Stream of
beforepaste
events handled by thisElement
. - onBlur → ElementStream<Event> @DocsEditable(), @DomName('Element.onblur'), read-only
-
Stream of
blur
events handled by thisElement
. - onCanPlay → ElementStream<Event> @DocsEditable(), @DomName('Element.oncanplay'), @Experimental(), read-only
- onCanPlayThrough → ElementStream<Event> @DocsEditable(), @DomName('Element.oncanplaythrough'), @Experimental(), read-only
- onChange → ElementStream<Event> @DocsEditable(), @DomName('Element.onchange'), read-only
-
Stream of
change
events handled by thisElement
. - onClick → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onclick'), read-only
-
Stream of
click
events handled by thisElement
. - onContextMenu → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.oncontextmenu'), read-only
-
Stream of
contextmenu
events handled by thisElement
. - onCopy → ElementStream<ClipboardEvent> @DocsEditable(), @DomName('Element.oncopy'), read-only
-
Stream of
copy
events handled by thisElement
. - onCut → ElementStream<ClipboardEvent> @DocsEditable(), @DomName('Element.oncut'), read-only
-
Stream of
cut
events handled by thisElement
. - onDoubleClick → ElementStream<Event> @DocsEditable(), @DomName('Element.ondblclick'), read-only
-
Stream of
doubleclick
events handled by thisElement
. - onDrag → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondrag'), read-only
-
A stream of
drag
events fired when this element currently being dragged. - onDragEnd → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragend'), read-only
-
A stream of
dragend
events fired when this element completes a drag operation. - onDragEnter → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragenter'), read-only
-
A stream of
dragenter
events fired when a dragged object is first dragged over this element. - onDragLeave → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragleave'), read-only
-
A stream of
dragleave
events fired when an object being dragged over this element leaves this element's target area. - onDragOver → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragover'), read-only
-
A stream of
dragover
events fired when a dragged object is currently being dragged over this element. - onDragStart → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragstart'), read-only
-
A stream of
dragstart
events fired when this element starts being dragged. - onDrop → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondrop'), read-only
-
A stream of
drop
events fired when a dragged object is dropped on this element. - onDurationChange → ElementStream<Event> @DocsEditable(), @DomName('Element.ondurationchange'), @Experimental(), read-only
- onEmptied → ElementStream<Event> @DocsEditable(), @DomName('Element.onemptied'), @Experimental(), read-only
- onEnded → ElementStream<Event> @DocsEditable(), @DomName('Element.onended'), @Experimental(), read-only
- onError → ElementStream<Event> @DocsEditable(), @DomName('Element.onerror'), read-only
-
Stream of
error
events handled by thisElement
. - onFocus → ElementStream<Event> @DocsEditable(), @DomName('Element.onfocus'), read-only
-
Stream of
focus
events handled by thisElement
. - onFullscreenChange → ElementStream<Event> @DocsEditable(), @DomName('Element.onwebkitfullscreenchange'), @Experimental(), read-only
-
Stream of
fullscreenchange
events handled by thisElement
. - onFullscreenError → ElementStream<Event> @DocsEditable(), @DomName('Element.onwebkitfullscreenerror'), @Experimental(), read-only
-
Stream of
fullscreenerror
events handled by thisElement
. - onInput → ElementStream<Event> @DocsEditable(), @DomName('Element.oninput'), read-only
-
Stream of
input
events handled by thisElement
. - onInvalid → ElementStream<Event> @DocsEditable(), @DomName('Element.oninvalid'), read-only
-
Stream of
invalid
events handled by thisElement
. - onKeyDown → ElementStream<KeyboardEvent> @DocsEditable(), @DomName('Element.onkeydown'), read-only
-
Stream of
keydown
events handled by thisElement
. - onKeyPress → ElementStream<KeyboardEvent> @DocsEditable(), @DomName('Element.onkeypress'), read-only
-
Stream of
keypress
events handled by thisElement
. - onKeyUp → ElementStream<KeyboardEvent> @DocsEditable(), @DomName('Element.onkeyup'), read-only
-
Stream of
keyup
events handled by thisElement
. - onLoad → ElementStream<Event> @DocsEditable(), @DomName('Element.onload'), read-only
-
Stream of
load
events handled by thisElement
. - onLoadedData → ElementStream<Event> @DocsEditable(), @DomName('Element.onloadeddata'), @Experimental(), read-only
- onLoadedMetadata → ElementStream<Event> @DocsEditable(), @DomName('Element.onloadedmetadata'), @Experimental(), read-only
- onMouseDown → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmousedown'), read-only
-
Stream of
mousedown
events handled by thisElement
. - onMouseEnter → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseenter'), @Experimental(), read-only
-
Stream of
mouseenter
events handled by thisElement
. - onMouseLeave → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseleave'), @Experimental(), read-only
-
Stream of
mouseleave
events handled by thisElement
. - onMouseMove → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmousemove'), read-only
-
Stream of
mousemove
events handled by thisElement
. - onMouseOut → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseout'), read-only
-
Stream of
mouseout
events handled by thisElement
. - onMouseOver → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseover'), read-only
-
Stream of
mouseover
events handled by thisElement
. - onMouseUp → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseup'), read-only
-
Stream of
mouseup
events handled by thisElement
. - onMouseWheel → ElementStream<WheelEvent> @DocsEditable(), @DomName('Element.onmousewheel'), @Experimental(), read-only
-
Stream of
mousewheel
events handled by thisElement
. - onPaste → ElementStream<ClipboardEvent> @DocsEditable(), @DomName('Element.onpaste'), read-only
-
Stream of
paste
events handled by thisElement
. - onPause → ElementStream<Event> @DocsEditable(), @DomName('Element.onpause'), @Experimental(), read-only
- onPlay → ElementStream<Event> @DocsEditable(), @DomName('Element.onplay'), @Experimental(), read-only
- onPlaying → ElementStream<Event> @DocsEditable(), @DomName('Element.onplaying'), @Experimental(), read-only
- onRateChange → ElementStream<Event> @DocsEditable(), @DomName('Element.onratechange'), @Experimental(), read-only
- onReset → ElementStream<Event> @DocsEditable(), @DomName('Element.onreset'), read-only
-
Stream of
reset
events handled by thisElement
. - onResize → ElementStream<Event> @DocsEditable(), @DomName('Element.onresize'), @Experimental(), read-only
- onScroll → ElementStream<Event> @DocsEditable(), @DomName('Element.onscroll'), read-only
-
Stream of
scroll
events handled by thisElement
. - onSearch → ElementStream<Event> @DocsEditable(), @DomName('Element.onsearch'), @Experimental(), read-only
-
Stream of
search
events handled by thisElement
. - onSeeked → ElementStream<Event> @DocsEditable(), @DomName('Element.onseeked'), @Experimental(), read-only
- onSeeking → ElementStream<Event> @DocsEditable(), @DomName('Element.onseeking'), @Experimental(), read-only
- onSelect → ElementStream<Event> @DocsEditable(), @DomName('Element.onselect'), read-only
-
Stream of
select
events handled by thisElement
. - onSelectStart → ElementStream<Event> @DocsEditable(), @DomName('Element.onselectstart'), @Experimental(), read-only
-
Stream of
selectstart
events handled by thisElement
. - onStalled → ElementStream<Event> @DocsEditable(), @DomName('Element.onstalled'), @Experimental(), read-only
- onSubmit → ElementStream<Event> @DocsEditable(), @DomName('Element.onsubmit'), read-only
-
Stream of
submit
events handled by thisElement
. - onSuspend → ElementStream<Event> @DocsEditable(), @DomName('Element.onsuspend'), @Experimental(), read-only
- onTimeUpdate → ElementStream<Event> @DocsEditable(), @DomName('Element.ontimeupdate'), @Experimental(), read-only
- onTouchCancel → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchcancel'), @Experimental(), read-only
-
Stream of
touchcancel
events handled by thisElement
. - onTouchEnd → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchend'), @Experimental(), read-only
-
Stream of
touchend
events handled by thisElement
. - onTouchEnter → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchenter'), @Experimental(), read-only
-
Stream of
touchenter
events handled by thisElement
. - onTouchLeave → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchleave'), @Experimental(), read-only
-
Stream of
touchleave
events handled by thisElement
. - onTouchMove → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchmove'), @Experimental(), read-only
-
Stream of
touchmove
events handled by thisElement
. - onTouchStart → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchstart'), @Experimental(), read-only
-
Stream of
touchstart
events handled by thisElement
. - onTransitionEnd → ElementStream<TransitionEvent> @DocsEditable(), @DomName('Element.ontransitionend'), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), @SupportedBrowser(SupportedBrowser.SAFARI), read-only
-
Stream of
transitionend
events handled by thisElement
. - onVolumeChange → ElementStream<Event> @DocsEditable(), @DomName('Element.onvolumechange'), @Experimental(), read-only
- onWaiting → ElementStream<Event> @DocsEditable(), @DomName('Element.onwaiting'), @Experimental(), read-only
- paddingEdge → CssRect @Experimental(), read-only
-
Access dimensions and position of the first Element's content + padding box in this list.
- style → CssStyleDeclarationBase read-only
-
Access the union of all
CssStyleDeclaration
s that are associated with anElementList
. - first → T read-only, inherited
- hashCode → int read-only, inherited
-
The hash code for this object.
- isEmpty → bool read-only, inherited
- isNotEmpty → bool read-only, inherited
- iterator → Iterator<T> read-only, inherited
- last → T read-only, inherited
- length → int read / write, inherited
-
Returns the number of objects in this list.
- reversed → Iterable<T> read-only, inherited
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
- single → T read-only, inherited
Operators
- operator ==(
other) → bool inherited -
The equality operator.
- operator [](
int index) → T inherited -
Returns the object at the given
index
in the list or throws a RangeError ifindex
is out of bounds. - operator []=(
int index, T value) → void inherited -
Sets the value at the given
index
in the list tovalue
or throws a RangeError ifindex
is out of bounds.
Methods
- add(
T element) → void inherited -
Adds
value
to the end of this list, extending the length by one. - addAll(
Iterable<T> iterable) → void inherited -
Appends all objects of
iterable
to the end of this list. - any(
bool test(E element)) → bool inherited -
Checks whether any element of this iterable satisfies
test
. - asMap(
) → Map<int, T> inherited -
Returns an unmodifiable
Map
view ofthis
. - clear(
) → void inherited -
Removes all objects from this list; the length of the list becomes zero.
- contains(
Object element) → bool inherited -
Returns true if the collection contains an element equal to
element
. - elementAt(
int index) → T inherited -
Returns the
index
th element. - every(
bool test(E element)) → bool inherited -
Checks whether every element of this iterable satisfies
test
. - expand<T>(
Iterable<T> f(E element)) → Iterable<T> inherited -
Expands each element of this
Iterable
into zero or more elements. - fillRange(
int start, int end, [ T fill ]) → void inherited -
Sets the objects in the range
start
inclusive toend
exclusive to the givenfillValue
. - firstWhere(
bool test(E element), { T orElse() }) → T inherited -
Returns the first element that satisfies the given predicate
test
. - fold<T>(
T initialValue, T combine(T previousValue, E element)) → T inherited -
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
- forEach(
void action(E element)) → void inherited -
Applies the function
f
to each element of this collection in iteration order. - getRange(
int start, int end) → Iterable<T> inherited -
Returns an
Iterable
that iterates over the objects in the rangestart
inclusive toend
exclusive. - indexOf(
Object element, [ int startIndex = 0 ]) → int inherited -
Returns the first index of
element
in this list. - insert(
int index, T element) → void inherited -
Inserts the object at position
index
in this list. - insertAll(
int index, Iterable<T> iterable) → void inherited -
Inserts all objects of
iterable
at positionindex
in this list. - join(
[String separator = "" ]) → String inherited -
Converts each element to a
String
and concatenates the strings. - lastIndexOf(
Object element, [ int startIndex ]) → int inherited -
Returns the last index in the list
a
of the givenelement
, starting the search at indexstartIndex
to 0. Returns -1 ifelement
is not found. - lastWhere(
bool test(E element), { T orElse() }) → T inherited -
Returns the last element that satisfies the given predicate
test
. - map<T>(
T f(E element)) → Iterable<T> inherited -
Returns a new lazy
Iterable
with elements that are created by callingf
on each element of thisIterable
in iteration order. - noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- reduce(
T combine(E previousValue, E element)) → T inherited -
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
- remove(
Object element) → bool inherited -
Removes the first occurrence of
value
from this list. - removeAt(
int index) → T inherited -
Removes the object at position
index
from this list. - removeLast(
) → T inherited -
Pops and returns the last object in this list.
- removeRange(
int start, int end) → void inherited -
Removes the objects in the range
start
inclusive toend
exclusive. - removeWhere(
bool test(E element)) → void inherited -
Removes all objects from this list that satisfy
test
. - replaceRange(
int start, int end, Iterable<T> newContents) → void inherited -
Removes the objects in the range
start
inclusive toend
exclusive and inserts the contents ofreplacement
in its place. - retainWhere(
bool test(E element)) → void inherited -
Removes all objects from this list that fail to satisfy
test
. - setAll(
int index, Iterable<T> iterable) → void inherited -
Overwrites objects of
this
with the objects ofiterable
, starting at positionindex
in this list. - setRange(
int start, int end, Iterable<T> iterable, [ int skipCount = 0 ]) → void inherited -
Copies the objects of
iterable
, skippingskipCount
objects first, into the rangestart
, inclusive, toend
, exclusive, of the list. - shuffle(
[Random random ]) → void inherited -
Shuffles the elements of this list randomly.
- singleWhere(
bool test(E element)) → T inherited -
Returns the single element that satisfies
test
. - skip(
int count) → Iterable<T> inherited -
Returns an
Iterable
that provides all but the firstcount
elements. - skipWhile(
bool test(E element)) → Iterable<T> inherited -
Returns an
Iterable
that skips leading elements whiletest
is satisfied. - sort(
[int compare(E a, E b) ]) → void inherited -
Sorts this list according to the order specified by the
compare
function. - sublist(
int start, [ int end ]) → List<T> inherited -
Returns a new list containing the objects from
start
inclusive toend
exclusive. - take(
int count) → Iterable<T> inherited -
Returns a lazy iterable of the
count
first elements of this iterable. - takeWhile(
bool test(E element)) → Iterable<T> inherited -
Returns a lazy iterable of the leading elements satisfying
test
. - toList(
{bool growable: true }) → List<T> inherited -
Creates a
List
containing the elements of thisIterable
. - toSet(
) → Set<T> inherited -
Creates a
Set
containing the same elements as this iterable. - toString(
) → String inherited -
Returns a string representation of this object.
- where(
bool test(E element)) → Iterable<T> inherited -
Returns a new lazy
Iterable
with all elements that satisfy the predicatetest
.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/ElementList-class.html