FirePHP4Chrome icon indicating copy to clipboard operation
FirePHP4Chrome copied to clipboard

table indexes

Open bkdotcom opened this issue 7 years ago • 1 comments

The server-side use of tables isn't very friendly (out of your control) that being said, the format the firephp spec uses, probably makes it harder to create the table client-side

X-Wf-1-1-1-6:76|[{"Type":"TABLE"},[["","name","age"],["row1","Dick",39],["row2","Jane",37]]]|

should appear as

name age
"row1" "Dick" 39
"row2" "Jane" 37

however the plug is currently rendering it as

index name age
0 "row1" "Dick" 39
1 "row2" "Jane" 37

the client shouldn't have the index column if possible as no index info was explicitly passed

the less-good "FirePHP for Chrome" extension gets tables right (for example/reference), but completely borks groups

bkdotcom avatar Jun 24 '17 02:06 bkdotcom

perhaps a solution is to treat columns[0] as an index column if columns[0] === '' || columns[0] === 'index' || columns[0] === 'i' ?

bkdotcom avatar Jul 18 '17 04:07 bkdotcom