Nebular: Need to call function on selected particular nb-tab

Created on 20 Dec 2017  路  6Comments  路  Source: akveo/nebular

hi, I need to call my custome function on tab selection of any tab, is there any particular way?
OR will need to extend the existing component.

theme question

All 6 comments

Hi @akshaykinhikar, as per documentation here https://akveo.github.io/nebular/#/docs/components/tabs there is an output called changeTab:

<nb-tabset (changeTab)="onChangeTab($event)">...

Hope this helps.

Its worked, but I have scenario like this:
<nb-tabset (changeTab)="selectTab($event)"> <div *ngFor="let element of arrayOfElement"> <nb-tab tabTitle="{{element}}"> </nb-tab> </div> </nb-tabset>
and I'm currently unable to get selected tab.

event.tabTitle

It Worked.., Thank you..,

Great! Closing now.

It looks like the changeTab output does not appear in the doc anymore.

Hi changeTab was not work me

Was this page helpful?
0 / 5 - 0 ratings