Tabs change by button

szczerbo asked 6 months ago

Hello,

is there any way to switch Tab to next or previous tab via button? I put the "next" and "previous" buttons to the content below tabs.

It should work like:

  1. click to "next" - next tab content is shown, and next tab is set as active,
  2. click to "previous" - previous tab content is shown, previous tab is set as active,

I saw, on the site bottom (https://mdbootstrap.com/angular/components/tabs/) something about Events, but it's not that I want to achieve.

hope for help:)


szczerbo answered 6 months ago

I found, at your site, solution for this question:

https://mdbootstrap.com/support/changing-tab-from-typescript/

It works pretty well:)


Hi,

Currently there isn't a functionality for that. I would try taking something else with the functionality you want and try modifying it (such as styling). Have you looked at these links?

https://mdbootstrap.com/angular/advanced/carousel/#multi-item

https://mdbootstrap.com/angular/components/steppers

 

 

 

 


Ah sorry - I misunderstood :) glad you found a solution


Please insert min. 20 characters.
Status

Closed

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