Trait

io.scalajs.dom.collection

HTMLCollection

Related Doc: package collection

Permalink

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(name: String): A

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  16. def item(index: Int): A

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def update(index: Int, value: A): Unit

    Permalink

    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

    Permalink
    Definition Classes
    Object
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsCollection[A]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped