Trait

org.scalajs.dom

Console

Related Doc: package dom

Permalink

trait Console extends Object

The console object provides access to the browser's debugging console. The specifics of how it works vary from browser to browser, but there is a de facto set of features that are typically provided.

Annotations
@JSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Console
  2. Object
  3. Any
  4. AnyRef
  5. 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def assert(test: Boolean, message: String, optionalParams: Any*): Unit

    Permalink
  6. def clear(): Unit

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def count(label: String = js.native): Unit

    Permalink

    Logs the number of times that this particular call to count() has been called.

    Logs the number of times that this particular call to count() has been called. This function takes an optional argument label.

  9. def countReset(label: String = js.native): Unit

    Permalink

    Resets the counter.

    Resets the counter. This function takes an optional argument label.

  10. def debug(message: Any, optionalParams: Any*): Unit

    Permalink

    Outputs a debug message.

    Outputs a debug message. You may use string substitution and additional arguments with this method. See Using string substitutions.

  11. def dir(value: Any, optionalParams: Any*): Unit

    Permalink

    Displays an interactive list of the properties of the specified JavaScript object.

    Displays an interactive list of the properties of the specified JavaScript object. The output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects.

  12. def dirxml(value: Any): Unit

    Permalink

    Displays an interactive tree of the descendant elements of the specified XML/HTML element.

    Displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def error(message: Any, optionalParams: Any*): Unit

    Permalink

    Outputs an error message.

    Outputs an error message. You may use string substitution and additional arguments with this method. See Using string substitutions.

  16. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def group(label: UndefOr[String] = js.native): Unit

    Permalink

    Creates a new inline group in the Web Console log.

    Creates a new inline group in the Web Console log. This indents following console messages by an additional level, until console.groupEnd() is called.

  19. def groupCollapsed(label: UndefOr[String] = js.native): Unit

    Permalink

    Creates a new inline group in the Web Console.

    Creates a new inline group in the Web Console. Unlike console.group(), however, the new group is created collapsed. The user will need to use the disclosure button next to it to expand it, revealing the entries created in the group.

    Call console.groupEnd() to back out to the parent group.

  20. def groupEnd(): Unit

    Permalink

    Exits the current inline group in the Web Console.

  21. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def info(message: Any, optionalParams: Any*): Unit

    Permalink

    Outputs an informational message to the Web Console.

    Outputs an informational message to the Web Console. In Firefox, a small "i" icon is displayed next to these items in the Web Console's log.

  24. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  26. def log(message: Any, optionalParams: Any*): Unit

    Permalink

    For general output of logging information.

    For general output of logging information. You may use string substitution and additional arguments with this method. See Using string substitutions.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def profile(reportName: String = js.native): Unit

    Permalink
  31. def profileEnd(): Unit

    Permalink
  32. def propertyIsEnumerable(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef
  34. def table(data: |[Object, Array[_]], columns: UndefOr[Int] = js.native): Unit

    Permalink

    Displays tabular data as a table.

    Displays tabular data as a table.

    This function takes one mandatory argument data, which must be an array or an object, and one additional optional parameter columns.

    It logs data as a table. Each element in the array (or enumerable property if data is an object) will be a row in the table.

    The first column in the table will be labeled (index). If data is an array, then its values will be the array indices. If data is an object, then its values will be the property names. Note that (in Firefox) console.table is limited to displaying 1000 rows (first row is the labeled index).

  35. def time(label: String): Unit

    Permalink

    Starts a timer you can use to track how long an operation takes.

    Starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started.

  36. def timeEnd(label: String): Unit

    Permalink

    Stops a timer that was previously started by calling console.time().

  37. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  39. def trace(): Unit

    Permalink

    Outputs a stack trace to the Web Console.

  40. def valueOf(): Any

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def warn(message: Any, optionalParams: Any*): Unit

    Permalink

    Outputs a warning message.

    Outputs a warning message. You may use string substitution and additional arguments with this method. See Using string substitutions.

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped