Use of rowspan to group hierarchical data

前端 未结 4 1089
隐瞒了意图╮
隐瞒了意图╮ 2020-12-10 12:15

Is it possible to group data (using rowspan as explained here) in a table rendered with angularjs. Data is hierarchical, with state having many counties

4条回答
  •  悲&欢浪女
    2020-12-10 12:57

    This is a variant of Holly Cummins' answer. The repeat is moved into the tr with ng-repeat-start and ng-repeat-end to prevent the tbody from being repeated. Also uses a slightly different method to hide the first row.

    
        
          {{st.name}}
          {{st.counties[0].name}}
        
        
           {{county.name}}
        
    
    

提交回复
热议问题