Bootstrap 3 tabbed content in editor template

Bootstrap 3 tabbed content in editor template

dynasoftdynasoft Posts: 422Questions: 67Answers: 3
edited March 2020 in Editor

Hi

I'm trying to apply the following:

https://getbootstrap.com/2.3.2/components.html#navs
https://editor.datatables.net/manual/templates#Any-HTML!

I'm able to click a tab and the heading shows correctly but the actual content part is still stuck on the 1st tab. Happens if I use the demo the BS site gives:

<div>

   Nav tabs 
  <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>

   Tab panes 
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="home">-1-</div>
    <div role="tabpanel" class="tab-pane" id="profile">-2-</div>
    <div role="tabpanel" class="tab-pane" id="messages">-3-</div>
    <div role="tabpanel" class="tab-pane" id="settings">-4-</div>
  </div>

</div>

Content is stuck on '-1-'. Thanks.

EDIT: Updated triple ticks to be on new lines.

Answers

Sign In or Register to comment.