javascript - Grouping nested table rows -


what best way of grouping table rows in html table? of groupings supposed nested, using <tbody> not ideal solution (they not supposed nested).

my data has following format:

 level 1 level 1     level 2     level 2         level 3             level 4         level 3         level 3     level 2 level 1     level 2         level 3             level 4             level 4         level 3     level 2         level 3 

what trying achieve:

  • sensible document structure that's easy read
  • so far achieved 'easy read' part css different levels
  • some of nested levels may required collapsible, grouping (?) make things easier. have work such nested level following particular higher level collapse via mechanism (clicking, likely). not sure how sense collapsing makes may 1 of requirements.

the table generated in javascript (from json object has nested structure), can sorts of magic it. data represents financial balance sheets, , may want display/hide more detailed information on particular data row, hence nesting.

i think there no way of doing in html. use jquery datatable.

http://jquery-datatables-row-grouping.googlecode.com/svn/trunk/customgroupordering.html

try looking @ example


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -