I'm using the twitter bootstrap library version 4.0 I was able to create a modal window but I would like to add tabs in it, I found some code but I could not implement them ..
Here's how I'm trying:
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Adicionar Ação</h4>
</div>
<div class="modal-body">
<ul class="nav nav-tabs">
<li class="active">
<a href="#home" data-toggle="tab">Home Tab</a>
</li>
<li>
<a href="#profile" data-toggle="tab">Profile Tab</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="home">Home Content</div>
<div class="tab-pane" id="profile">Profile Content</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
My model call is made like this:
$ ('# myModal'). modal ('show');
Does anyone know how I can add tabs in my modal, or do you know any tutorials I can study? Thank you.
Edit, here is an image of what I need: s.bootply.com/render/QKuuimkQTC I want to put the tabs within my modal as in the example, however at the moment it is getting like this: prntscr.com/djsekx