MenuItem.EventEmitter

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
vigalo
Posts: 6
Joined: 09 Apr 2017, 10:50

07 Jul 2017, 12:16

Hi :

I upgraded from primeng 4.0.1 to 4.1.0-rc3 because I need fileupload's custom upload that was implemented in 4.1

Now, I'm getting multiple errors like this :

Property 'eventEmitter' does not exist on type 'MenuItem'

in app.menu.component.ts

Can yoy help me?

Thanks

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

07 Jul 2017, 12:45

Hi,

We will update all layouts to the latest versions of angular (4.2.x) and primeng (4.1.x) very soon.

Regards

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

07 Jul 2017, 13:10

Yes, next week, layouts will be updated for 4.1.0 compatibility. To avoid waiting, itemClick function at app.menu.component would be;

Code: Select all

itemClick(event: Event, item: MenuItem, index: number) {
        //avoid processing disabled items
        if(item.disabled) {
            event.preventDefault();
            return true;
        }
        
        //activate current item and deactivate active sibling if any
        this.activeIndex = (this.activeIndex === index) ? null : index;
                
        //execute command
        if(item.command) {
            item.command({
               originalEvent: event,
                item: item
            });
        }

        //prevent hash change
        if(item.items || (!item.url && !item.routerLink)) {
            event.preventDefault();
        }
        
        //hide menu
        if(!item.items) {
            if(this.app.isHorizontal())
                this.app.resetMenu = true;
            else
                this.app.resetMenu = false;
                
            this.app.overlayMenuActive = false;
            this.app.staticMenuMobileActive = false;
        }
    }
only change is the item.command handling.

vigalo
Posts: 6
Joined: 09 Apr 2017, 10:50

07 Jul 2017, 19:04

Ok. It works now.

Thanks.

manichandra
Posts: 11
Joined: 02 May 2017, 23:46

11 Jul 2017, 21:45

We purchased Ultima theme for our organization . After upgrading it to Ultima from the basic theme many accessibility features stopped working. For example Changing the tabs is not accessible by keyboard.
Also wanted to know how you are going to inform all the customers when you change layouts to the newer versions ? are we going to get the latest zip file ?

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

17 Jul 2017, 08:55

We will announce it from ultima-ng page we have a migration guide in documentations section.

Regards

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests