@@ -7459,6 +7459,16 @@ trait Console extends js.Object {
7459
7459
*/
7460
7460
def dir (value : js.Any , optionalParams : js.Any * ): Unit = js.native
7461
7461
7462
+ /**
7463
+ * Displays an interactive tree of the descendant elements of the specified XML/HTML element.
7464
+ * If it is not possible to display as an element the JavaScript Object view is shown instead.
7465
+ * The output is presented as a hierarchical listing of expandable nodes that let you see the
7466
+ * contents of child nodes.
7467
+ *
7468
+ * MDN
7469
+ */
7470
+ def dirxml (value : js.Any ): Unit = js.native
7471
+
7462
7472
/**
7463
7473
* Outputs a warning message. You may use string substitution and additional
7464
7474
* arguments with this method. See Using string substitutions.
@@ -7483,7 +7493,100 @@ trait Console extends js.Object {
7483
7493
*/
7484
7494
def log (message : js.Any , optionalParams : js.Any * ): Unit = js.native
7485
7495
7496
+ /**
7497
+ * Outputs a debug message. You may use string substitution and additional
7498
+ * arguments with this method. See Using string substitutions.
7499
+ *
7500
+ * MDN
7501
+ */
7502
+ def debug (message : js.Any , optionalParams : js.Any * ): Unit = js.native
7503
+
7504
+ /**
7505
+ * Displays tabular data as a table.
7506
+ *
7507
+ * This function takes one mandatory argument data, which must be an array or an object,
7508
+ * and one additional optional parameter columns.
7509
+ *
7510
+ * It logs data as a table. Each element in the array (or enumerable property if data
7511
+ * is an object) will be a row in the table.
7512
+ *
7513
+ * The first column in the table will be labeled (index). If data is an array,
7514
+ * then its values will be the array indices. If data is an object, then its values
7515
+ * will be the property names. Note that (in Firefox) console.table is limited to
7516
+ * displaying 1000 rows (first row is the labeled index).
7517
+ *
7518
+ * MDN
7519
+ */
7520
+ def table (data : js.Object | js.Array [_],
7521
+ columns : js.UndefOr [Int ] = js.undefined): Unit = js.native
7522
+
7523
+ /**
7524
+ * Outputs a stack trace to the Web Console.
7525
+ *
7526
+ * MDN
7527
+ */
7528
+ def trace (): Unit = js.native
7529
+
7486
7530
def profileEnd (): Unit = js.native
7531
+
7532
+ /**
7533
+ * Starts a timer you can use to track how long an operation takes.
7534
+ * You give each timer a unique name, and may have up to 10,000 timers running on a given page.
7535
+ * When you call console.timeEnd() with the same name, the browser will output the time,
7536
+ * in milliseconds, that elapsed since the timer was started.
7537
+ *
7538
+ * MDN
7539
+ */
7540
+ def time (label : String ): Unit = js.native
7541
+
7542
+ /**
7543
+ * Stops a timer that was previously started by calling console.time().
7544
+ *
7545
+ * MDN
7546
+ */
7547
+ def timeEnd (label : String ): Unit = js.native
7548
+
7549
+ /**
7550
+ * Logs the number of times that this particular call to count() has been called.
7551
+ * This function takes an optional argument label.
7552
+ *
7553
+ * MDN
7554
+ */
7555
+ def count (label : String = " default" ): Unit = js.native
7556
+
7557
+ /**
7558
+ * Resets the counter. This function takes an optional argument label.
7559
+ *
7560
+ * MDN
7561
+ */
7562
+ def countReset (label : String = " default" ): Unit = js.native
7563
+
7564
+ /**
7565
+ * Creates a new inline group in the Web Console log. This indents following
7566
+ * console messages by an additional level, until console.groupEnd() is called.
7567
+ *
7568
+ * MDN
7569
+ */
7570
+ def group (label : js.UndefOr [String ] = js.undefined): Unit = js.native
7571
+
7572
+ /**
7573
+ * Creates a new inline group in the Web Console. Unlike console.group(), however,
7574
+ * the new group is created collapsed. The user will need to use the disclosure
7575
+ * button next to it to expand it, revealing the entries created in the group.
7576
+ *
7577
+ * Call console.groupEnd() to back out to the parent group.
7578
+ *
7579
+ * MDN
7580
+ */
7581
+ def groupCollapsed (
7582
+ label : js.UndefOr [String ] = js.undefined): Unit = js.native
7583
+
7584
+ /**
7585
+ * Exits the current inline group in the Web Console.
7586
+ *
7587
+ * MDN
7588
+ */
7589
+ def groupEnd (): Unit = js.native
7487
7590
}
7488
7591
7489
7592
@ js.native
0 commit comments