|
|
|
@ -10,19 +10,33 @@ |
|
|
|
</abp-style-bundle> |
|
|
|
} |
|
|
|
|
|
|
|
@section scripts { |
|
|
|
<abp-script-bundle> |
|
|
|
@*<abp-script src="/libs/highlight.js/lib/highlight.js" /> |
|
|
|
<abp-script src="/Pages/Components/highlightCode.js" />*@ |
|
|
|
</abp-script-bundle> |
|
|
|
} |
|
|
|
|
|
|
|
<link rel="stylesheet" |
|
|
|
href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/default.min.css"> |
|
|
|
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script> |
|
|
|
<script>hljs.initHighlightingOnLoad();</script> |
|
|
|
|
|
|
|
|
|
|
|
<h2>Tabs</h2> |
|
|
|
|
|
|
|
<p>Based on <a href="http://getbootstrap.com/docs/4.1/components/navs/#tabs" target="_blank"> Bootstrap tab</a>.</p> |
|
|
|
|
|
|
|
<h4># Most Simple Tabs Example</h4> |
|
|
|
<h4>Example</h4> |
|
|
|
|
|
|
|
<div class="demo-with-code"> |
|
|
|
<div class="demo-area"> |
|
|
|
|
|
|
|
<abp-tabs> |
|
|
|
<abp-tab title="Home"> |
|
|
|
Content_Home |
|
|
|
</abp-tab> |
|
|
|
<abp-tab-link title="Link" name="LinkId" href="#"/> |
|
|
|
<abp-tab-link title="Link" href="#" /> |
|
|
|
<abp-tab title="profile"> |
|
|
|
Content_Profile |
|
|
|
</abp-tab> |
|
|
|
@ -37,14 +51,16 @@ |
|
|
|
</abp-tabs> |
|
|
|
</div> |
|
|
|
<div class="code-area"> |
|
|
|
<pre> |
|
|
|
<abp-tabs name="TabId"> |
|
|
|
<abp-tabs> |
|
|
|
<abp-tab title="Tag Helper" active="true"> |
|
|
|
<pre><code> |
|
|
|
<abp-tabs> |
|
|
|
<abp-tab title="Home"> |
|
|
|
Content_Home |
|
|
|
</abp-tab> |
|
|
|
<abp-tab-link title="Link" name="LinkId" href="#"/> |
|
|
|
Content_Home |
|
|
|
</abp-tab> |
|
|
|
<abp-tab-link title="Link" href="#" /> |
|
|
|
<abp-tab title="profile"> |
|
|
|
Content_Profile |
|
|
|
Content_Profile |
|
|
|
</abp-tab> |
|
|
|
<abp-tab-dropdown title="Contact" name="ContactDropdown"> |
|
|
|
<abp-tab title="Contact 1" parent-dropdown-name="ContactDropdown"> |
|
|
|
@ -55,11 +71,44 @@ |
|
|
|
</abp-tab> |
|
|
|
</abp-tab-dropdown> |
|
|
|
</abp-tabs> |
|
|
|
</pre> |
|
|
|
</code></pre> |
|
|
|
</abp-tab> |
|
|
|
<abp-tab title="Rendered"> |
|
|
|
<pre><code> |
|
|
|
<div> |
|
|
|
<ul class="nav nav-tabs" id="48c14227782f4edab7f153b413ac1429" role="tablist"> |
|
|
|
<li class="nav-item"><a class="nav-link active" id="48c14227782f4edab7f153b413ac1429_0-tab" data-toggle="tab" href="#48c14227782f4edab7f153b413ac1429_0" role="tab" aria-controls="48c14227782f4edab7f153b413ac1429_0" aria-selected="true">Home</a></li> |
|
|
|
<li class="nav-item"><a class="nav-link" id="LinkId-tab" href="#">Link</a></li> |
|
|
|
<li class="nav-item"><a class="nav-link" id="48c14227782f4edab7f153b413ac1429_2-tab" data-toggle="tab" href="#48c14227782f4edab7f153b413ac1429_2" role="tab" aria-controls="48c14227782f4edab7f153b413ac1429_2" aria-selected="false">profile</a></li> |
|
|
|
<li class="nav-item dropdown"> |
|
|
|
<a class="nav-link dropdown-toggle" id="ContactDropdown-tab" data-toggle="dropdown" href="#ContactDropdown" role="button" aria-haspopup="true" aria-expanded="false">Contact</a><div class="dropdown-menu"> |
|
|
|
<a class="dropdown-item" id="48c14227782f4edab7f153b413ac1429_3-tab" href="#48c14227782f4edab7f153b413ac1429_3" data-toggle="tab" role="tab" aria-controls="48c14227782f4edab7f153b413ac1429_3" aria-selected="false">Contact 1</a> |
|
|
|
<a class="dropdown-item" id="48c14227782f4edab7f153b413ac1429_4-tab" href="#48c14227782f4edab7f153b413ac1429_4" data-toggle="tab" role="tab" aria-controls="48c14227782f4edab7f153b413ac1429_4" aria-selected="false">Contact 2</a> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<div class="tab-content" id="48c14227782f4edab7f153b413ac1429Content"> |
|
|
|
<div class="tab-pane fade show active" id="48c14227782f4edab7f153b413ac1429_0" role="tabpanel" aria-labelledby="48c14227782f4edab7f153b413ac1429_0-tab"> |
|
|
|
Content_Home |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade" id="48c14227782f4edab7f153b413ac1429_2" role="tabpanel" aria-labelledby="48c14227782f4edab7f153b413ac1429_2-tab"> |
|
|
|
Content_Profile |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade" id="48c14227782f4edab7f153b413ac1429_3" role="tabpanel" aria-labelledby="48c14227782f4edab7f153b413ac1429_3-tab"> |
|
|
|
Content_1_Content |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade" id="48c14227782f4edab7f153b413ac1429_4" role="tabpanel" aria-labelledby="48c14227782f4edab7f153b413ac1429_4-tab"> |
|
|
|
Content_2_Content |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</code></pre> |
|
|
|
</abp-tab> |
|
|
|
</abp-tabs> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<h4># Tabs With Name Attiribute Example</h4> |
|
|
|
<h4>Tab attributes</h4> |
|
|
|
|
|
|
|
<div class="demo-with-code"> |
|
|
|
<div class="demo-area"> |
|
|
|
@ -76,7 +125,9 @@ |
|
|
|
</abp-tabs> |
|
|
|
</div> |
|
|
|
<div class="code-area"> |
|
|
|
<pre> |
|
|
|
<abp-tabs> |
|
|
|
<abp-tab title="Tag Helper" active="true"> |
|
|
|
<pre><code> |
|
|
|
<abp-tabs name="TabId"> |
|
|
|
<abp-tab name="nav-home" title="Home"> |
|
|
|
Content_Home |
|
|
|
@ -88,16 +139,50 @@ |
|
|
|
Content_Contact |
|
|
|
</abp-tab> |
|
|
|
</abp-tabs> |
|
|
|
</pre> |
|
|
|
</code></pre> |
|
|
|
</abp-tab> |
|
|
|
<abp-tab title="Rendered"> |
|
|
|
<pre><code> |
|
|
|
<div> |
|
|
|
<ul class="nav nav-tabs" id="TabId" role="tablist"> |
|
|
|
<li class="nav-item"><a class="nav-link" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="false">Home</a></li> |
|
|
|
<li class="nav-item"><a class="nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">profile</a></li> |
|
|
|
<li class="nav-item"><a class="nav-link active show" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="true">Contact</a></li> |
|
|
|
</ul> |
|
|
|
<div class="tab-content" id="TabIdContent"> |
|
|
|
<div class="tab-pane fade" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab"> |
|
|
|
Content_Home |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab"> |
|
|
|
Content_Profile |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade active show" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab"> |
|
|
|
Content_Contact |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</code></pre> |
|
|
|
</abp-tab> |
|
|
|
</abp-tabs> |
|
|
|
</div> |
|
|
|
<div class="attribute-area"> |
|
|
|
<ul> |
|
|
|
<li> |
|
|
|
<b>name</b>: Sets "id" attribute of generated elements. Default value is a Guid. Not needed unless tabs are changed or modified with Jquery. |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<b>active</b>: Sets the active tab. |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<h4># Pill Example</h4> |
|
|
|
<h4>Pill Example</h4> |
|
|
|
|
|
|
|
<div class="demo-with-code"> |
|
|
|
<div class="demo-area"> |
|
|
|
<abp-tabs tab-style="Pill"> |
|
|
|
<abp-tab active="true" title="Home"> |
|
|
|
<abp-tab title="Home"> |
|
|
|
Content_Home |
|
|
|
</abp-tab> |
|
|
|
<abp-tab title="profile"> |
|
|
|
@ -109,28 +194,56 @@ |
|
|
|
</abp-tabs> |
|
|
|
</div> |
|
|
|
<div class="code-area"> |
|
|
|
<pre> |
|
|
|
<abp-tabs tab-style="Pill" > |
|
|
|
<abp-tab active="true" title="Home"> |
|
|
|
Content_Home |
|
|
|
</abp-tab> |
|
|
|
<abp-tabs> |
|
|
|
<abp-tab title="Tag Helper" active="true"> |
|
|
|
<pre><code> |
|
|
|
<abp-tabs tab-style="Pill"> |
|
|
|
<abp-tab title="Home"> |
|
|
|
Content_Home |
|
|
|
</abp-tab> |
|
|
|
<abp-tab title="profile"> |
|
|
|
Content_Profile |
|
|
|
Content_Profile |
|
|
|
</abp-tab> |
|
|
|
<abp-tab title="Contact"> |
|
|
|
Content_Contact |
|
|
|
Content_Contact |
|
|
|
</abp-tab> |
|
|
|
</abp-tabs> |
|
|
|
</pre> |
|
|
|
|
|
|
|
</code></pre> |
|
|
|
</abp-tab> |
|
|
|
<abp-tab title="Rendered"> |
|
|
|
<pre><code> |
|
|
|
<div> |
|
|
|
<ul class="nav nav-pills" id="2eaad131e42c4a90962fcb3c4e55c946" role="tablist"> |
|
|
|
<li class="nav-item"><a class="nav-link active" id="2eaad131e42c4a90962fcb3c4e55c946_0-tab" data-toggle="pill" href="#2eaad131e42c4a90962fcb3c4e55c946_0" role="tab" aria-controls="2eaad131e42c4a90962fcb3c4e55c946_0" aria-selected="true">Home</a></li> |
|
|
|
<li class="nav-item"><a class="nav-link" id="2eaad131e42c4a90962fcb3c4e55c946_1-tab" data-toggle="pill" href="#2eaad131e42c4a90962fcb3c4e55c946_1" role="tab" aria-controls="2eaad131e42c4a90962fcb3c4e55c946_1" aria-selected="false">profile</a></li> |
|
|
|
<li class="nav-item"><a class="nav-link" id="2eaad131e42c4a90962fcb3c4e55c946_2-tab" data-toggle="pill" href="#2eaad131e42c4a90962fcb3c4e55c946_2" role="tab" aria-controls="2eaad131e42c4a90962fcb3c4e55c946_2" aria-selected="false">Contact</a></li> |
|
|
|
</ul> |
|
|
|
<div class="tab-content" id="2eaad131e42c4a90962fcb3c4e55c946Content"> |
|
|
|
<div class="tab-pane fade show active" id="2eaad131e42c4a90962fcb3c4e55c946_0" role="tabpanel" aria-labelledby="2eaad131e42c4a90962fcb3c4e55c946_0-tab"> |
|
|
|
Content_Home |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade" id="2eaad131e42c4a90962fcb3c4e55c946_1" role="tabpanel" aria-labelledby="2eaad131e42c4a90962fcb3c4e55c946_1-tab"> |
|
|
|
Content_Profile |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade" id="2eaad131e42c4a90962fcb3c4e55c946_2" role="tabpanel" aria-labelledby="2eaad131e42c4a90962fcb3c4e55c946_2-tab"> |
|
|
|
Content_Contact |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</code></pre> |
|
|
|
</abp-tab> |
|
|
|
</abp-tabs> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<h4># Vertical Example</h4> |
|
|
|
<h4>Vertical Example</h4> |
|
|
|
|
|
|
|
<div class="demo-with-code"> |
|
|
|
<div class="demo-area"> |
|
|
|
<abp-tabs tab-style="PillVertical" vertical-header-size="_2"> |
|
|
|
<abp-tab active="true" title="Home"> |
|
|
|
<abp-tab title="Home"> |
|
|
|
Content_Home |
|
|
|
</abp-tab> |
|
|
|
<abp-tab title="profile"> |
|
|
|
@ -142,8 +255,10 @@ |
|
|
|
</abp-tabs> |
|
|
|
</div> |
|
|
|
<div class="code-area"> |
|
|
|
<pre> |
|
|
|
<abp-tabs name="TabId" tab-style="Pill" vertical-header-size="_2" > |
|
|
|
<abp-tabs> |
|
|
|
<abp-tab title="Tag Helper" active="true"> |
|
|
|
<pre><code> |
|
|
|
<abp-tabs tab-style="PillVertical" vertical-header-size="_2" > |
|
|
|
<abp-tab active="true" title="Home"> |
|
|
|
Content_Home |
|
|
|
</abp-tab> |
|
|
|
@ -154,6 +269,44 @@ |
|
|
|
Content_Contact |
|
|
|
</abp-tab> |
|
|
|
</abp-tabs> |
|
|
|
</pre> |
|
|
|
|
|
|
|
</code></pre> |
|
|
|
</abp-tab> |
|
|
|
<abp-tab title="Rendered"> |
|
|
|
<pre><code> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-2"> |
|
|
|
<ul class="nav flex-column nav-pills" id="2f347a2276af424ebbd67f85653edf1f" role="tablist"> |
|
|
|
<li class="nav-item"><a class="nav-link active" id="2f347a2276af424ebbd67f85653edf1f_0-tab" data-toggle="pill" href="#2f347a2276af424ebbd67f85653edf1f_0" role="tab" aria-controls="2f347a2276af424ebbd67f85653edf1f_0" aria-selected="true">Home</a></li> |
|
|
|
<li class="nav-item"><a class="nav-link" id="2f347a2276af424ebbd67f85653edf1f_1-tab" data-toggle="pill" href="#2f347a2276af424ebbd67f85653edf1f_1" role="tab" aria-controls="2f347a2276af424ebbd67f85653edf1f_1" aria-selected="false">profile</a></li> |
|
|
|
<li class="nav-item"><a class="nav-link" id="2f347a2276af424ebbd67f85653edf1f_2-tab" data-toggle="pill" href="#2f347a2276af424ebbd67f85653edf1f_2" role="tab" aria-controls="2f347a2276af424ebbd67f85653edf1f_2" aria-selected="false">Contact</a></li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
<div class="col-10"> |
|
|
|
<div class="tab-content" id="2f347a2276af424ebbd67f85653edf1fContent"> |
|
|
|
<div class="tab-pane fade show active" id="2f347a2276af424ebbd67f85653edf1f_0" role="tabpanel" aria-labelledby="2f347a2276af424ebbd67f85653edf1f_0-tab"> |
|
|
|
Content_Home |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade" id="2f347a2276af424ebbd67f85653edf1f_1" role="tabpanel" aria-labelledby="2f347a2276af424ebbd67f85653edf1f_1-tab"> |
|
|
|
Content_Profile |
|
|
|
</div> |
|
|
|
<div class="tab-pane fade" id="2f347a2276af424ebbd67f85653edf1f_2" role="tabpanel" aria-labelledby="2f347a2276af424ebbd67f85653edf1f_2-tab"> |
|
|
|
Content_Contact |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</code></pre> |
|
|
|
</abp-tab> |
|
|
|
</abp-tabs> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="attribute-area"> |
|
|
|
<ul> |
|
|
|
<li> |
|
|
|
<b>vertical-header-size</b>: Sets the column width of tab headers. |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |