[M3] Sort Datagrid (new material design theme)

The DataGridJson custom component uses @gabriel.duro.s’s trick and automatically adds the header row with clickable column headers, takes care of the click event management and ordering, and a adds a little icon that shows which column is the table ordered by.

If you are trying to show something very simple, this could do the job.

Pros: it’s all automatic, you don’t even need to create template rows.
Cons: it’s all automatic, you can’t even create template rows.

4 Likes