tabMenu

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
h.katz
Posts: 1
Joined: 12 May 2017, 15:37

26 May 2017, 15:33

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.

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

26 May 2017, 16:29

Fixed for next version; https://github.com/primefaces/barcelona/issues/5

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();
        });
 ...

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests