Use of rowspan to group hierarchical data

前端 未结 4 1090
隐瞒了意图╮
隐瞒了意图╮ 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 13:03

    This variant of KayakDave's answer improves the structuring by pulling the first nested row out to share the of the header:

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

提交回复
热议问题