learn-vue-tab icon indicating copy to clipboard operation
learn-vue-tab copied to clipboard

programmatically open a tab?

Open carmolim opened this issue 3 years ago • 1 comments

Is possible to programmatically open a tab?

I need to make a link that would open an specific tab but I didn't found a way to do that.

Thanks!

carmolim avatar Jan 11 '22 17:01 carmolim

To programmatically open a tab, you would use selectTab and pass in the index, to make a link that loads the page with a tab selected, you can maybe add a #{index} to the URL, and then select that tap when the component is loaded

joshlieb avatar Mar 09 '22 00:03 joshlieb