Uživatel:Slepi/Sandbox

Z WikiSkript

Modals[upravit | editovat zdroj]

Launch demo modal

Source code[upravit | editovat zdroj]

<!-- Button trigger modal -->
<span type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
Launch demo modal
</span>

<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<span type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</span>
</div>

<div class="modal-body">Modal body</div>
<div class="modal-footer">
<span type="button" class="btn btn-secondary" data-dismiss="modal">Close</span>
<span type="button" class="btn btn-primary">Save changes</span>
</div>
</div>
</div>
</div>