Modals

From Tweeki
Revision as of 18:40, 5 September 2016 by Thai (talk | contribs) (Created page with "Category:Components__TOC__ ==== Markup==== <nowiki><btn data-toggle="modal" data-target="#myModal">Launch modal</btn></nowiki> <nowiki><div class="modal fade" id="my...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Markup

<btn data-toggle="modal" data-target="#myModal">Launch modal</btn>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
 <div class="modal-dialog">
   <div class="modal-content">
     <div class="modal-header">
       <btn type="button" class="close" data-dismiss="modal" aria-label="Close">
         <span aria-hidden="true">×</span>
       </btn>
       <h4 class="modal-title">Modal title</h4>
     </div>
     <div class="modal-body">Modal body</div>
     <div class="modal-footer">
       <btn data-dismiss="modal">Close</btn>
       <btn class="btn btn-primary">Modal Action</btn>
     </div>
   </div>
 </div>

</div>

Result

Launch modal

HTML