how to add placeholder text in the filter box in datatable column headers

后端 未结 5 1645
暖寄归人
暖寄归人 2021-01-21 14:31

I have a prime faces datatable with few columns and have filteryBy attribute for all the columns. How do I add placeholder or watermark to provide hint for users. Any suggestion

5条回答
  •  独厮守ぢ
    2021-01-21 14:52

    First give and ID for your column and add a p:watermark component:

    
    ...    
        
    
            
                
                
            
    
        
    ...
    
    

    Don't forget to replace the tableForm id with your actual form around your p:dataTable.

提交回复
热议问题