I have multiple panels and 2 buttons. One button will expand them all and the other one will collapse them all. I'm not able to expand or collapse them. Does anyone know how to make this happen? Here's my code. Thank you in advance!
<p-panel header="Panel 1" [toggleable]="true" [style]="{'margin-bottom':'20px'}">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</p-panel>