Reputation: 175
I am trying to create widgets using the PrimeFaces dashboard
component. According to user choice, he should be able to collapse / close the widget. How can I achieve this?
Upvotes: 0
Views: 628
Reputation: 2439
Use closable panels in your dashboard items;
<p:panel id="pnl" toggleable="true" closable="true" toggleSpeed="500" closeSpeed="500" widgetVar="panel">
Good Luck!
Upvotes: 1