Packages

t

io.scalajs.dom.collection

HTMLCollection

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

Linear Supertypes
JsCollection[A], Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HTMLCollection
  2. JsCollection
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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()
  5. 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()
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  16. 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

  17. def length: Int

    Returns the number of items in the collection.

    Returns the number of items in the collection.

    Definition Classes
    HTMLCollection → JsCollection
  18. 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

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toLocaleString(): String
    Definition Classes
    Object
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. 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()
  27. def valueOf(): Any
    Definition Classes
    Object
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsCollection[A]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped