javascript - Add indent to slickgrid row -


i have slickgrid table data in it. im populating using ror app, generate json passing slickgrid table builder. i've found example http://mleibman.github.io/slickgrid/examples/example5-collapsing.html, can't figure out how add indents(preferably it'd css class, can add on backend). i've tried add cssclasses slickgrid row, doesnt append selected class

what doing wrong?

without information problem, can simple trick:

add level/number pair (this indicates deep of object) every item of generated json. slickgrid example found using span element set indent. so, need this:

<span style="display:inline-block;height:1px;width:"+(15*jsonobject['level'])+"px"></span> 

if not works you, please post more information.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -