(onChange) not firing in dynamic tab

UI Components for Angular
Post Reply
TekSiDoT
Posts: 32
Joined: 10 Mar 2016, 16:44

22 Mar 2016, 09:19

I'm creating a dynamic tab like this:

Code: Select all

<p-tabView>
<p-tabPanel *ngFor="#tab of limitTypes" [header]="tab.header" [selected]="tab.sel" (onChange)="handleChange($event)">
(stuff like a couple of dynamic tables)
</p-tabPanel>
</p-tabView>
However, the onChange event is never trigger.

CC84
Posts: 69
Joined: 11 Mar 2016, 09:32

22 Mar 2016, 09:30

I think the onChange Event must be bound on the tabView not the tabPanel.

TekSiDoT
Posts: 32
Joined: 10 Mar 2016, 16:44

22 Mar 2016, 09:44

well, thanks, I'm gonna crawl back into my hole ;)

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests