Selecting tabs programmatically


Topic: Selecting tabs programmatically

mdb2 pro asked 6 years ago

In the documentation that are instructions on how to disable and remove tabs programmatically Better and instructions on how to select a tab programmatically using: tabSet.setActiveTab(i);  

dimitribocquet pro answered 6 years ago

Thanks for the tip, I was looking for to do that ! We definitely need this in the doc.
@ViewChild('tabs') tabs: TabsetComponent;
this.tabs.setActiveTab(2);
I need to do that because my first tab is disabled by default, but it's still selected on init. Looks like a bug.

Arkadiusz Idzikowski staff answered 6 years ago

We will update our documentation in the near future. Regards, Arek
Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

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