【发布时间】:2018-07-23 01:20:39
【问题描述】:
我有多个面板和 2 个按钮。一个按钮将它们全部展开,另一个按钮将它们全部折叠。我无法展开或折叠它们。有谁知道如何做到这一点?这是我的代码。提前谢谢!
<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>
【问题讨论】: