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
Post a Comment