Right Panel Usage

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
ybendek
Posts: 102
Joined: 05 Aug 2011, 17:52

04 Oct 2017, 05:58

Hello

I was wondering if it's possible to open through some command the right panel included in Ultima Layout?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

05 Oct 2017, 09:20

I added rightPanelOpen and rightPanelClose method to layout.js for next version. For now, you can make the following changes;
//layout.js

Code: Select all

/** 
 * PrimeFaces Ultima Layout
 */
PrimeFaces.widget.Ultima = PrimeFaces.widget.BaseWidget.extend({
    
    ....
    
    rightPanelOpen: function() {
        this.rightPanel.addClass('layout-rightpanel-active');
        this.closeOverlayMenu();
            
        if(this.rightPanel.hasClass('layout-rightpanel-active')) {
            this.rightPanel.find('.nano').nanoScroller({flash:true});
        }
    },
    
    rightPanelClose: function() {
        this.rightPanel.removeClass('layout-rightpanel-active');
        this.closeOverlayMenu();
    }
    
});
//menu.xhtml

Code: Select all

<pu:menu widgetVar="me">
//test.xhtml

Code: Select all

<p:commandButton value="Open" oncomplete="PF('me').rightPanelOpen()" />
<p:commandButton value="Close" oncomplete="PF('me').rightPanelClose()" />

ybendek
Posts: 102
Joined: 05 Aug 2011, 17:52

13 Oct 2017, 01:33

awesome... thank you

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

18 Oct 2017, 12:17

You're welcome!

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests