Hello
I was wondering if it's possible to open through some command the right panel included in Ultima Layout?
Right Panel Usage
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I added rightPanelOpen and rightPanelClose method to layout.js for next version. For now, you can make the following changes;
//layout.js
//menu.xhtml
//test.xhtml
//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();
}
});
Code: Select all
<pu:menu widgetVar="me">
Code: Select all
<p:commandButton value="Open" oncomplete="PF('me').rightPanelOpen()" />
<p:commandButton value="Close" oncomplete="PF('me').rightPanelClose()" />
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You're welcome!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 6 guests