Class

io.scalajs.dom.html

URLSearchParams

Related Doc: package html

Permalink

class URLSearchParams extends Object

The URLSearchParams interface defines utility methods to work with the query string of a URL.

An object implementing URLSearchParams can directly be used in a for...of structure, instead of entries(): for (var p of mySearchParams) is equivalent to for (var p of mySearchParams.entries()).

Annotations
@RawJSType() @native() @JSGlobal( "URLSearchParams" )
See also

https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. URLSearchParams
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new URLSearchParams(init: |[USVString, URLSearchParams])

    Permalink

    init

    A USVString or a URLSearchParams instance.

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 append(name: String, value: String): Unit

    Permalink

    Appends a specified key/value pair as a new search parameter.

    Appends a specified key/value pair as a new search parameter.

    name

    The name of the parameter to append.

    value

    The value of the parameter to append.

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def delete(name: String): Unit

    Permalink

    Deletes the given search parameter, and its associated value, from the list of all search parameters.

    Deletes the given search parameter, and its associated value, from the list of all search parameters.

    name

    The name of the parameter to be deleted.

  8. def entries(): Iterator[Array[String]]

    Permalink

    Returns an iterator allowing to go through all key/value pairs contained in this object.

    Returns an iterator allowing to go through all key/value pairs contained in this object.

    returns

    an Iterator

  9. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get(name: String): USVString

    Permalink

    The get() method of the URLSearchParams interface returns the first value associated to the given search parameter.

    The get() method of the URLSearchParams interface returns the first value associated to the given search parameter.

    name

    The name of the parameter to return.

    returns

    A USVString.

  13. def getAll(name: String): Array[USVString]

    Permalink

    Returns all the values association with a given search parameter.

    Returns all the values association with a given search parameter.

    name

    The name of the parameter to return.

    returns

    An array of USVStrings.

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def has(name: String): Boolean

    Permalink

    Returns a Boolean indicating if such a search parameter exists.

    Returns a Boolean indicating if such a search parameter exists.

    name

    The name of the parameter to find.

    returns

    true, if such a search parameter exists.

  16. def hasOwnProperty(v: String): Boolean

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

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

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

    Permalink
    Definition Classes
    Object
  20. def keys(): Iterator[String]

    Permalink

    Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.

    Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.

    returns

    Returns an Iterator.

  21. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    Object
  25. def set(name: String, value: String): Unit

    Permalink

    Sets the value associated to a given search parameter to the given value.

    Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.

    name

    The name of the parameter to set.

    value

    The value of the parameter to set.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  30. def values(): Iterator[String]

    Permalink

    Returns an iterator allowing to go through all values of the key/value pairs contained in this object.

    Returns an iterator allowing to go through all values of the key/value pairs contained in this object.

    returns

    Returns an Iterator.

  31. final def wait(): Unit

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

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

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

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped