Olga Real Olga Real - 1 year ago 114
Javascript Question

How to minimize a JQuery UI Portlet by default


in that link above there are objects called as portlets. the thing i want is how could i make the portlets start as minimized by default.

Is there any possible ways to make it start as minimized in initial view?

Answer Source

If you're going directly off of their example source code, then you simply need to update

.portlet-content { padding: 0.4em; } 


.portlet-content { display:none; padding: 0.4em; } 


.prepend( "<span class='ui-icon ui-icon-minusthick'></span>")


.prepend( "<span class='ui-icon ui-icon-plusthick'></span>")
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download