[Webkit-unassigned] [Bug 38664] Web Inspector: add a "table" method to console, to allow output of tabular data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 28 07:04:34 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38664





--- Comment #8 from Patrick Mueller <pmuellr at yahoo.com>  2010-05-28 07:04:32 PST ---
(In reply to comment #7)
> What do you think?

I'm not a big fan of overridden parameters, and it looks like this is getting a bit out of control!  :-)

How about we get rid of the ability to output multiple tables - you can already get nesting/grouping via group()/endGroup().

And then take an optional 2nd parameter which is an options object, with a property per option.  So you could do the column headers via something like this:

    console.table(array2D, { columns: ["first", "second", "third"]})

maybe support row headers:

    console.table(array2D, { rows: ["first row", "second row", "third row"]})

leaves lots of space for additional options - table width (100% or sized-to-fit), cellpadding, etc

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list