Filtering specific column in Angular Material table in angular 5

前端 未结 8 791
太阳男子
太阳男子 2020-12-01 07:11

In Angular material official website it is mentioned that filterPredicate: ((data: T, filter: string) => boolean) will filter data based on specific field. But don\'t gettin

8条回答
  •  [愿得一人]
    2020-12-01 07:28

    To expand on Naresh's answer, the following HTML snippet shows how to get both sorting and filtering in the same column and also the little "x" button to clear filter terms:

       
        
          
            Search Description
            
            
          
        
    
        
          {{assessment?.description}} 
      
    

提交回复
热议问题