Difference between revisions of "Accordions"
From Tweeki
Line 1: | Line 1: | ||
[[Category:Components]] | [[Category:Components]] | ||
=== Standard Accordions === | === Standard Accordions === | ||
+ | |||
+ | '''Markup''' | ||
<nowiki><div class="panel-group" id="accordion"></nowiki> | <nowiki><div class="panel-group" id="accordion"></nowiki> | ||
Line 10: | Line 12: | ||
<nowiki></accordion></nowiki> | <nowiki></accordion></nowiki> | ||
<nowiki></div></nowiki> | <nowiki></div></nowiki> | ||
+ | |||
+ | '''Result''' | ||
<div class="panel-group" id="accordion"> | <div class="panel-group" id="accordion"> | ||
Line 15: | Line 19: | ||
<accordion parent="accordion" heading="SECTION2">Lorem ipsum...</accordion> | <accordion parent="accordion" heading="SECTION2">Lorem ipsum...</accordion> | ||
</div> | </div> | ||
+ | |||
+ | '''HTML''' | ||
+ | |||
+ | <pre> | ||
+ | <div id="accordion" class="panel-group"> | ||
+ | <div class="panel panel-default"> | ||
+ | <div class="panel-heading"> | ||
+ | <h4 class="panel-title"> | ||
+ | <a href="#accordion1" data-parent="#accordion" data-toggle="collapse"> | ||
+ | SECTION1 | ||
+ | </a> | ||
+ | </h4> | ||
+ | </div> | ||
+ | <div class="panel-collapse collapse" id="accordion1"> | ||
+ | <div class="panel-body"> | ||
+ | Lorem ipsum... | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="panel panel-default"> | ||
+ | <div class="panel-heading"> | ||
+ | <h4 class="panel-title"> | ||
+ | <a href="#accordion2" data-parent="#accordion" data-toggle="collapse"> | ||
+ | SECTION2 | ||
+ | </a> | ||
+ | </h4> | ||
+ | </div> | ||
+ | <div class="panel-collapse collapse" id="accordion2"> | ||
+ | <div class="panel-body"> | ||
+ | Lorem ipsum... | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | </pre> |
Revision as of 19:06, 4 March 2015
Standard Accordions
Markup
<div class="panel-group" id="accordion"> <accordion parent="accordion" heading="SECTION1"> Lorem ipsum... </accordion> <accordion parent="accordion" heading="SECTION2"> Lorem ipsum... </accordion> </div>
Result
Lorem ipsum...
Lorem ipsum...
HTML
<div id="accordion" class="panel-group"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#accordion1" data-parent="#accordion" data-toggle="collapse"> SECTION1 </a> </h4> </div> <div class="panel-collapse collapse" id="accordion1"> <div class="panel-body"> Lorem ipsum... </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#accordion2" data-parent="#accordion" data-toggle="collapse"> SECTION2 </a> </h4> </div> <div class="panel-collapse collapse" id="accordion2"> <div class="panel-body"> Lorem ipsum... </div> </div> </div> </div>