HTMLOptionsCollection class
The interface represents a collection of <option>
HTML
elements (in document order) and offers methods and properties
for selecting from the list as well as optionally altering its
items. This object is returned only by the options
property of
select.
HTMLCollection
HTMLOptionsCollection
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- HTMLOptionsCollection()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
Available on HTMLCollection, provided by the PropsHTMLCollection extension
no setter - length ↔ int
-
Available on HTMLOptionsCollection, provided by the PropsHTMLOptionsCollection extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex ↔ int
-
Available on HTMLOptionsCollection, provided by the PropsHTMLOptionsCollection extension
getter/setter pair
Methods
-
add(
dynamic element, [dynamic before]) → void -
Available on HTMLOptionsCollection, provided by the PropsHTMLOptionsCollection extension
-
item(
int index) → Element? -
Available on HTMLCollection, provided by the PropsHTMLCollection extension
-
namedItem(
String name) → dynamic -
Available on HTMLCollection, provided by the PropsHTMLCollection extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
int index) → void -
Available on HTMLOptionsCollection, provided by the PropsHTMLOptionsCollection extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited