jsonary-js / jsonary

Quickly assemble clients for JSON-based APIs (powered by JSON Schema)
http://jsonary.com/
MIT License
122 stars 14 forks source link

adaptive-table object rendering - again #139

Closed Ognian closed 10 years ago

Ognian commented 10 years ago

Hello, sorry for again asking about this but I still have a problem with the rendering of object's inside a table cell in adaptive-table. Actually I did a mistake when changing < to <= in this line of code. The funny thing is that indeed the changed behavior is what I need, so that an object is rendered inside the cell and not the table expanded; And this can be only accomplished by changing the comparison to if (data.basicType() == "object" && depthRemaining < 0) { Do you have a better idea? Do you need the other behavior? Thanks Ognian