Please tell me how to switch tabs using a URL link? I need to get a direct link to a specific tab
<div class="mdl-layout__tab-bar mdl-js-ripple-effect">
<a href="#fixed-tab-1" class="mdl-layout__tab is-active">Tab 1</a>
<a href="#fixed-tab-2" class="mdl-layout__tab">Tab 2</a>
<a href="#fixed-tab-3" class="mdl-layout__tab">Tab 3</a>
</div>
For
Material Design Lite(or similar ones), You may dynamically determine whether is_active will be applied to the tabsUse conditional statement such as
Then, you can use URL with the following format to do what you want
So, a sample code will be:
See
Demo-tab1
Demo-tab2
Demo-tab3