mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
142 lines
4.1 KiB
142 lines
4.1 KiB
@page
|
|
@model Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.Pages.Components.TabsModel
|
|
@{
|
|
ViewData["Title"] = "Tabs";
|
|
}
|
|
|
|
<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>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-tabs>
|
|
<abp-tab title="Home">
|
|
Content_Home
|
|
</abp-tab>
|
|
<abp-tab title="profile">
|
|
Content_Profile
|
|
</abp-tab>
|
|
<abp-tab title="Contact">
|
|
Content_Contact
|
|
</abp-tab>
|
|
</abp-tabs>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-tabs name="TabId">
|
|
<abp-tab name="nav-home" title="Home">
|
|
Content_Home
|
|
</abp-tab>
|
|
<abp-tab name="nav-profile" title="profile">
|
|
Content_Profile
|
|
</abp-tab>
|
|
<abp-tab name="nav-contact" title="Contact">
|
|
Content_Contact
|
|
</abp-tab>
|
|
</abp-tabs>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<h4># Tabs With Name Attiribute Example</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-tabs name="TabId">
|
|
<abp-tab name="nav-home" title="Home">
|
|
Content_Home
|
|
</abp-tab>
|
|
<abp-tab name="nav-profile" active="true" title="profile">
|
|
Content_Profile
|
|
</abp-tab>
|
|
<abp-tab name="nav-contact" title="Contact">
|
|
Content_Contact
|
|
</abp-tab>
|
|
</abp-tabs>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-tabs name="TabId">
|
|
<abp-tab name="nav-home" title="Home">
|
|
Content_Home
|
|
</abp-tab>
|
|
<abp-tab name="nav-profile" active="true" title="profile">
|
|
Content_Profile
|
|
</abp-tab>
|
|
<abp-tab name="nav-contact" title="Contact">
|
|
Content_Contact
|
|
</abp-tab>
|
|
</abp-tabs>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<h4># Pill Example</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-tabs tab-style="Pill">
|
|
<abp-tab active="true" title="Home">
|
|
Content_Home
|
|
</abp-tab>
|
|
<abp-tab title="profile">
|
|
Content_Profile
|
|
</abp-tab>
|
|
<abp-tab title="Contact">
|
|
Content_Contact
|
|
</abp-tab>
|
|
</abp-tabs>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-tabs name="TabId" tab-style="Pill" >
|
|
<abp-tab name="nav-home" active="true" title="Home">
|
|
Content_Home
|
|
</abp-tab>
|
|
<abp-tab name="nav-profile" title="profile">
|
|
Content_Profile
|
|
</abp-tab>
|
|
<abp-tab name="nav-contact" title="Contact">
|
|
Content_Contact
|
|
</abp-tab>
|
|
</abp-tabs>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<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">
|
|
Content_Home
|
|
</abp-tab>
|
|
<abp-tab title="profile">
|
|
Content_Profile
|
|
</abp-tab>
|
|
<abp-tab title="Contact">
|
|
Content_Contact
|
|
</abp-tab>
|
|
</abp-tabs>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-tabs name="TabId" tab-style="Pill" vertical-header-size="_2" >
|
|
<abp-tab name="nav-home" active="true" title="Home">
|
|
Content_Home
|
|
</abp-tab>
|
|
<abp-tab name="nav-profile" title="profile">
|
|
Content_Profile
|
|
</abp-tab>
|
|
<abp-tab name="nav-contact" title="Contact">
|
|
Content_Contact
|
|
</abp-tab>
|
|
</abp-tabs>
|
|
</pre>
|
|
</div>
|
|
</div>
|