Topic: Tabs - getActiveTab

Jan Louw pro asked 4 years ago


Hi,

I'm looking into getting the "Active Tag" display content using the 'getActiveTab' method. The documentation reference the EventEmitter, but no details on the content thereof.

In short, I'm looking at displaying additional information based on the Tab Text.

Any suggestion/help will be appreciated.

Regards


Arkadiusz Idzikowski staff commented 4 years ago

Can you provide more details about the problem? You need to add this output (getActiveTab)="onGetActiveTab($event)" to the <mdb-tabset> and then in your ts file create implementation for onGetActiveTab method:

`onGetActiveTab(event: any) { console.log(event) }


Jan Louw pro commented 4 years ago

Hi,

Thank you for your suggestions - I've managed to determine the index of the active tab, and could thus process the record associate with it. Regards


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 9.3.1
  • Device: Na
  • Browser: Na
  • OS: Na
  • Provided sample code: No
  • Provided link: No