Catherine
Catherine

Reputation: 153

Display images within a PrimeNG DataTable

I am developing a website using Angular2 and would like to display information in a table. I am using PrimeNG's DataTable. The problem is I need to display images within the table. This can be done using PrimeNG's DataList, but DataList's appearance and inability to sort columns keeps me from using it. Ideas?

Upvotes: 0

Views: 5853

Answers (1)

Cagatay Civici
Cagatay Civici

Reputation: 6504

You can use templating to place image inside column. http://www.primefaces.org/primeng/#/datatabletemplating

Upvotes: 1

Related Questions