SnS
SnS

Reputation: 175

How do I add a close button on the PrimeFaces dashboard component?

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

Answers (1)

gokhansari
gokhansari

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

Related Questions