How to expand row from datatable programmatically

后端 未结 5 677
被撕碎了的回忆
被撕碎了的回忆 2021-01-13 10:41

I want to expand row directly from an typescript method, i\'ve try with @viewchild but it doesn\'t work :

HTML:



        
5条回答
  •  天涯浪人
    2021-01-13 11:33

    There is a toggleRow method at the level of the data table that takes row data, passed as a parameter:

    
    
      
    
      
        expanded row
        {{ car.brand }}
      
    
    
    

提交回复
热议问题