ng2-semantic-ui
ng2-semantic-ui copied to clipboard
feat(tabs): Ability to select tabs programmatically
I'd like to request the ability to select tabs in code. This would be useful in syncing active tabs with a current route paramater eg. with the following setup, a url of 'mail/sent' could activate the second tab.
routes = [{ path = "mail/:folder"...
<sui-tabset>
<div class="ui top attached tabular menu">
<a class="item" suiTabHeader="1">Inbox</a>
<a class="item" suiTabHeader="2">Sent</a>
<a class="item" suiTabHeader="3">Archived</a>
</div>...
+1 (this would be very useful) btw. what is best workaround now to get f.ex.second tab active on init (tried 'ngOnInit' and 'ngAfterViewInit' but didn't get success?? Maybe newbie problem but can anyone get some glue...
@netmiller workaround will be to have a bool
somewhere in the component to command the tabset; check the examples