Tabs - getActiveTab


Topic: Tabs - getActiveTab

Jan Louw pro premium priority vip early access asked 9 months 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 9 months 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 premium priority vip early access commented 9 months 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


Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: Angular
  • MDB Version: 9.3.1
  • Device: Na
  • Browser: Na
  • OS: Na
  • Provided sample code: No
  • Provided link: No
Tags