alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 361 forks source link

How to load JS object into Dynatable? #167

Open csdrane opened 9 years ago

csdrane commented 9 years ago

I am stumped on how to load a Javascript key/value object into Dynatable.

I have tried playing around with one of the pieces of demo code from the homepage, represented here as a jsFiddle http://jsfiddle.net/5mtxekeb/1/ .

I cannot get dynatable to render when I attempt to move the JSON within the <pre> tag to within the JS code.

As for why this is relevant to me, chrome.storage's API returns a key/value object, and it's going to return the data that I want to represent in tabular form. Any help on how to do this is appreciated.

csdrane commented 9 years ago

Never mind, figured this out.