[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
Tue Jun 1 05:05:14 PDT 2010


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





--- Comment #22 from Jan Odvarko <odvarko at gmail.com>  2010-06-01 05:05:12 PST ---
(In reply to comment #21)
> > var data = [{name: "Mike", age: 30}, {name: "John", age: 5}];
> > console.table(data, "My Family", {prop: "age", label: "How Old?"})
> How do I define several properties? Is this array or vararg?
Sorry, it's an array.

> This is way too long, I'd appreciate
> 
> a) console.table(data, ["age"]);
> 
> Can we support both (a) and (b) below based on the typeof column specifier?
Not sure what you mean by "typeof column specifier"

> b) console.table(data, "My Family", [{ property: "age", sort: "ascending", label: "How Old?" }])
This is exactly what I have in mind.

> Also, lets make sure that specifying no columns dumps all properties.
Yes

Honza

-- 
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