Difference between revisions of "Table"

From FirebugWiki
Jump to: navigation, search
(Separate Command Line API page for table())
 
m (Added categories)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Allows to log provided data using tabular layout. The method takes one required parameter that represents table-like data (array of arrays or list of objects). The optional <code>columns</code> parameter can be used to specify columns and/or properties to be logged (see more at [http://www.softwareishard.com/blog/firebug/tabular-logs-in-firebug/ softwareishard.com]).
+
Allows to log provided data using tabular layout. The method takes one required parameter that represents table-like data (array of arrays or list of objects). The optional <code>columns</code> parameter can be used to specify columns and/or properties to be logged.
 +
 
 +
This command is a shortcut for the [[console.table]] API.
 +
 
 +
== Syntax ==
 +
<source lang="javascript">
 +
table(data[, columns])
 +
</source>
 +
 
 +
== See also ==
 +
* [[Command Line API]]
 +
 
 +
[[Category:Firebug]]
 +
[[Category:UI]]
 +
[[Category:API]]

Latest revision as of 17:06, 21 November 2013

Allows to log provided data using tabular layout. The method takes one required parameter that represents table-like data (array of arrays or list of objects). The optional columns parameter can be used to specify columns and/or properties to be logged.

This command is a shortcut for the console.table API.

Syntax[edit]

table(data[, columns])

See also[edit]