Use of rowspan to group hierarchical data

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

    Sure. Is something like this what you had in mind:

    
        {{st.name}}
        
           {{county.name}}
        
    
    

    I kept this example simple, nested 2 deep. But in the fiddle, below, I've got it nested 3 deep (so it includes zip).

    demo fiddle

提交回复
热议问题