dimanche 29 novembre 2015

Laravel - How to Open the Third Tab in a Page

I have 4 tabs in my user view.

When the page loads, how do I make my view display the third tab as active?

For different routes, I need to have different tabs open -

eg: - for user/home - the first tab for user/profile - the second tab

I am using Bootstrap :-

<div>
<ul class="nav nav-tabs" role="tablist">
   <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
   <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
   <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
   <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
 </ul>


<div class="tab-content">
   <div role="tabpanel" class="tab-pane active" id="home">Home</div>
   <div role="tabpanel" class="tab-pane" id="profile">Profile</div>
   <div role="tabpanel" class="tab-pane" id="messages">Messages</div>
   <div role="tabpanel" class="tab-pane" id="settings">Settings</div>
</div>

</div>



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TeFWnl
via IFTTT

Aucun commentaire:

Enregistrer un commentaire