[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 04:57:24 PDT 2010


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





--- Comment #21 from Pavel Feldman <pfeldman at chromium.org>  2010-06-01 04:57:22 PST ---
> 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?

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?

b) console.table(data, "My Family", [{ property: "age", sort: "ascending", label: "How Old?" }])

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

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