The link here https://www.primefaces.org/primeng/#/table/rowexpansion shows an example of p-table
where the rows can be expanded by clicking on the first column which uses the directive pRowToggler
.
I am trying to achieve this toggling on the click of the row anywhere on the row.
I have tried looking for such an example but couldn't find one.
I have also tried to use the [pRowToggler]
on the ng-template
for the row but that didn't work either.
Can someone direct me how to achieve this behaviour ?