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
abortevents handled by thisElement. - onBeforeCopy → ElementStream<Event> @DocsEditable(), @DomName('Element.onbeforecopy'), read-only
-
Stream of
beforecopyevents handled by thisElement. - onBeforeCut → ElementStream<Event> @DocsEditable(), @DomName('Element.onbeforecut'), read-only
-
Stream of
beforecutevents handled by thisElement. - onBeforePaste → ElementStream<Event> @DocsEditable(), @DomName('Element.onbeforepaste'), read-only
-
Stream of
beforepasteevents handled by thisElement. - onBlur → ElementStream<Event> @DocsEditable(), @DomName('Element.onblur'), read-only
-
Stream of
blurevents 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
changeevents handled by thisElement. - onClick → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onclick'), read-only
-
Stream of
clickevents handled by thisElement. - onContextMenu → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.oncontextmenu'), read-only
-
Stream of
contextmenuevents handled by thisElement. - onCopy → ElementStream<ClipboardEvent> @DocsEditable(), @DomName('Element.oncopy'), read-only
-
Stream of
copyevents handled by thisElement. - onCut → ElementStream<ClipboardEvent> @DocsEditable(), @DomName('Element.oncut'), read-only
-
Stream of
cutevents handled by thisElement. - onDoubleClick → ElementStream<Event> @DocsEditable(), @DomName('Element.ondblclick'), read-only
-
Stream of
doubleclickevents handled by thisElement. - onDrag → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondrag'), read-only
-
A stream of
dragevents fired when this element currently being dragged. - onDragEnd → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragend'), read-only
-
A stream of
dragendevents fired when this element completes a drag operation. - onDragEnter → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragenter'), read-only
-
A stream of
dragenterevents fired when a dragged object is first dragged over this element. - onDragLeave → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragleave'), read-only
-
A stream of
dragleaveevents 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
dragoverevents fired when a dragged object is currently being dragged over this element. - onDragStart → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondragstart'), read-only
-
A stream of
dragstartevents fired when this element starts being dragged. - onDrop → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.ondrop'), read-only
-
A stream of
dropevents 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
errorevents handled by thisElement. - onFocus → ElementStream<Event> @DocsEditable(), @DomName('Element.onfocus'), read-only
-
Stream of
focusevents handled by thisElement. - onFullscreenChange → ElementStream<Event> @DocsEditable(), @DomName('Element.onwebkitfullscreenchange'), @Experimental(), read-only
-
Stream of
fullscreenchangeevents handled by thisElement. - onFullscreenError → ElementStream<Event> @DocsEditable(), @DomName('Element.onwebkitfullscreenerror'), @Experimental(), read-only
-
Stream of
fullscreenerrorevents handled by thisElement. - onInput → ElementStream<Event> @DocsEditable(), @DomName('Element.oninput'), read-only
-
Stream of
inputevents handled by thisElement. - onInvalid → ElementStream<Event> @DocsEditable(), @DomName('Element.oninvalid'), read-only
-
Stream of
invalidevents handled by thisElement. - onKeyDown → ElementStream<KeyboardEvent> @DocsEditable(), @DomName('Element.onkeydown'), read-only
-
Stream of
keydownevents handled by thisElement. - onKeyPress → ElementStream<KeyboardEvent> @DocsEditable(), @DomName('Element.onkeypress'), read-only
-
Stream of
keypressevents handled by thisElement. - onKeyUp → ElementStream<KeyboardEvent> @DocsEditable(), @DomName('Element.onkeyup'), read-only
-
Stream of
keyupevents handled by thisElement. - onLoad → ElementStream<Event> @DocsEditable(), @DomName('Element.onload'), read-only
-
Stream of
loadevents 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
mousedownevents handled by thisElement. - onMouseEnter → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseenter'), @Experimental(), read-only
-
Stream of
mouseenterevents handled by thisElement. - onMouseLeave → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseleave'), @Experimental(), read-only
-
Stream of
mouseleaveevents handled by thisElement. - onMouseMove → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmousemove'), read-only
-
Stream of
mousemoveevents handled by thisElement. - onMouseOut → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseout'), read-only
-
Stream of
mouseoutevents handled by thisElement. - onMouseOver → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseover'), read-only
-
Stream of
mouseoverevents handled by thisElement. - onMouseUp → ElementStream<MouseEvent> @DocsEditable(), @DomName('Element.onmouseup'), read-only
-
Stream of
mouseupevents handled by thisElement. - onMouseWheel → ElementStream<WheelEvent> @DocsEditable(), @DomName('Element.onmousewheel'), @Experimental(), read-only
-
Stream of
mousewheelevents handled by thisElement. - onPaste → ElementStream<ClipboardEvent> @DocsEditable(), @DomName('Element.onpaste'), read-only
-
Stream of
pasteevents 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
resetevents handled by thisElement. - onResize → ElementStream<Event> @DocsEditable(), @DomName('Element.onresize'), @Experimental(), read-only
- onScroll → ElementStream<Event> @DocsEditable(), @DomName('Element.onscroll'), read-only
-
Stream of
scrollevents handled by thisElement. - onSearch → ElementStream<Event> @DocsEditable(), @DomName('Element.onsearch'), @Experimental(), read-only
-
Stream of
searchevents 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
selectevents handled by thisElement. - onSelectStart → ElementStream<Event> @DocsEditable(), @DomName('Element.onselectstart'), @Experimental(), read-only
-
Stream of
selectstartevents handled by thisElement. - onStalled → ElementStream<Event> @DocsEditable(), @DomName('Element.onstalled'), @Experimental(), read-only
- onSubmit → ElementStream<Event> @DocsEditable(), @DomName('Element.onsubmit'), read-only
-
Stream of
submitevents 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
touchcancelevents handled by thisElement. - onTouchEnd → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchend'), @Experimental(), read-only
-
Stream of
touchendevents handled by thisElement. - onTouchEnter → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchenter'), @Experimental(), read-only
-
Stream of
touchenterevents handled by thisElement. - onTouchLeave → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchleave'), @Experimental(), read-only
-
Stream of
touchleaveevents handled by thisElement. - onTouchMove → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchmove'), @Experimental(), read-only
-
Stream of
touchmoveevents handled by thisElement. - onTouchStart → ElementStream<TouchEvent> @DocsEditable(), @DomName('Element.ontouchstart'), @Experimental(), read-only
-
Stream of
touchstartevents 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
transitionendevents 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
CssStyleDeclarations 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
indexin the list or throws a RangeError ifindexis out of bounds. - operator []=(
int index, T value) → void inherited -
Sets the value at the given
indexin the list tovalueor throws a RangeError ifindexis out of bounds.
Methods
- add(
T element) → void inherited -
Adds
valueto the end of this list, extending the length by one. - addAll(
Iterable<T> iterable) → void inherited -
Appends all objects of
iterableto 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
Mapview 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
indexth 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
Iterableinto zero or more elements. - fillRange(
int start, int end, [ T fill ]) → void inherited -
Sets the objects in the range
startinclusive toendexclusive 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
fto each element of this collection in iteration order. - getRange(
int start, int end) → Iterable<T> inherited -
Returns an
Iterablethat iterates over the objects in the rangestartinclusive toendexclusive. - indexOf(
Object element, [ int startIndex = 0 ]) → int inherited -
Returns the first index of
elementin this list. - insert(
int index, T element) → void inherited -
Inserts the object at position
indexin this list. - insertAll(
int index, Iterable<T> iterable) → void inherited -
Inserts all objects of
iterableat positionindexin this list. - join(
[String separator = "" ]) → String inherited -
Converts each element to a
Stringand concatenates the strings. - lastIndexOf(
Object element, [ int startIndex ]) → int inherited -
Returns the last index in the list
aof the givenelement, starting the search at indexstartIndexto 0. Returns -1 ifelementis 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
Iterablewith elements that are created by callingfon each element of thisIterablein 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
valuefrom this list. - removeAt(
int index) → T inherited -
Removes the object at position
indexfrom 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
startinclusive toendexclusive. - 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
startinclusive toendexclusive and inserts the contents ofreplacementin 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
thiswith the objects ofiterable, starting at positionindexin this list. - setRange(
int start, int end, Iterable<T> iterable, [ int skipCount = 0 ]) → void inherited -
Copies the objects of
iterable, skippingskipCountobjects 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
Iterablethat provides all but the firstcountelements. - skipWhile(
bool test(E element)) → Iterable<T> inherited -
Returns an
Iterablethat skips leading elements whiletestis satisfied. - sort(
[int compare(E a, E b) ]) → void inherited -
Sorts this list according to the order specified by the
comparefunction. - sublist(
int start, [ int end ]) → List<T> inherited -
Returns a new list containing the objects from
startinclusive toendexclusive. - take(
int count) → Iterable<T> inherited -
Returns a lazy iterable of the
countfirst 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
Listcontaining the elements of thisIterable. - toSet(
) → Set<T> inherited -
Creates a
Setcontaining 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
Iterablewith 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