Hello,
when I pin the tabMenu to the window and I hit a menueitem in another tab than the one where i pinned the tabmenu it goes back to the first tab.
For example in the schowcase:
1. I pin the menu under Calendar to the screen.
2. I choose another menu under Features.
3. The menu goes back to Calendar automaticaly. I thought it would stay in Features.
Did I miss something.
Thanks for your feedback.
tabMenu
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
Fixed for next version; https://github.com/primefaces/barcelona/issues/5
Please change the following event in your layout.js for now;
Please change the following event in your layout.js for now;
Code: Select all
...
this.tabMenuNavLinks.on('click', function(e) {
$this.sidebar.css('overflow','hidden');
var link = $(this);
link.parent().addClass('active-item').siblings('.active-item').removeClass('active-item');
$this.wrapper.addClass('layout-wrapper-menu-active');
$this.tabMenuContents.find('.ripple-animate').remove();
$this.tabMenuContents.removeClass('layout-tabmenu-content-active');
var tabContent = $this.tabMenuContents.eq(link.parent().index());
tabContent.addClass('layout-tabmenu-content-active');
if(!$this.isOverlayMenu()) {
setTimeout(function() {
$(window).trigger('resize');
}, 310);
}
var pinbutton = tabContent.find('.menu-pin-button');
if(pinbutton.length && !pinbutton.children('i').hasClass('fa-rotate-90')) {
$this._saveMenuState(link.parent().index());
}
$(this).siblings('.layout-tabmenu-tooltip').hide();
e.preventDefault();
});
...
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests