trait HTMLCollection[A] extends Object with JsCollection[A]
The HTMLCollection interface represents a generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.
- Annotations
- @RawJSType() @native()
- See also
https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection
- Alphabetic
- By Inheritance
- HTMLCollection
- JsCollection
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(name: String): A
Returns the specific node whose ID or, as a fallback, name matches the string specified by name.
Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.
- name
the specified name of the node
- returns
the specific node
- Annotations
- @JSBracketAccess()
-
def
apply(index: Int): A
Returns the specific node at the given zero-based index into the list.
Returns the specific node at the given zero-based index into the list. Returns null if the index is out of range.
- index
The position of the Node to be returned. Elements appear in an HTMLCollection in the same order in which they appear in the document source.
- returns
the specific node
- Definition Classes
- HTMLCollection → JsCollection
- Annotations
- @JSBracketAccess()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
item(index: Int): A
Returns the specific node at the given zero-based index into the list.
Returns the specific node at the given zero-based index into the list. Returns null if the index is out of range.
- index
The position of the Node to be returned. Elements appear in an HTMLCollection in the same order in which they appear in the document source.
- returns
the specific node
-
def
length: Int
Returns the number of items in the collection.
Returns the number of items in the collection.
- Definition Classes
- HTMLCollection → JsCollection
-
def
namedItem(name: String): A
Returns the specific node whose ID or, as a fallback, name matches the string specified by name.
Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.
- name
the specified name of the node
- returns
the specific node
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(index: Int, value: A): Unit
Set the element at the given index.
Set the element at the given index.
- index
the position of the Node to be set.
- value
the value to set.
- Annotations
- @JSBracketAccess()
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )