Skip to content

Commit 107717d

Browse files
committed
Navs Documentation
1 parent 056f626 commit 107717d

File tree

1 file changed

+114
-0
lines changed
  • docs/en/UI/AspNetCore/Tag-Helpers

1 file changed

+114
-0
lines changed
+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Navs
2+
3+
## Introduction
4+
5+
`abp-nav` is the basic tag helper component derived from bootstrap nav element.
6+
7+
Basic usage:
8+
9+
````csharp
10+
<abp-nav nav-style="Pill" align="Center">
11+
<abp-nav-item>
12+
<a abp-nav-link active="true" href="#">Active</a>
13+
</abp-nav-item>
14+
<abp-nav-item>
15+
<a abp-nav-link href="#">Longer nav link</a>
16+
</abp-nav-item>
17+
<abp-nav-item>
18+
<a abp-nav-link href="#">link</a>
19+
</abp-nav-item>
20+
<abp-nav-item>
21+
<a abp-nav-link disabled="true" href="#">disabled</a>
22+
</abp-nav-item>
23+
</abp-nav>
24+
````
25+
26+
## Demo
27+
28+
See the [navs demo page](https://bootstrap-taghelpers.abp.io/Components/Navs) to see it in action.
29+
30+
## abp-nav Attributes
31+
32+
- **nav-style**: The value indicates the positioning and style of the containing items. Should be one of the following values:
33+
* `Default` (default value)
34+
* `Vertical`
35+
* `Pill`
36+
* `PillVertical`
37+
- **align:** The value indicates the alignment of the containing items:
38+
* `Default` (default value)
39+
* `Start`
40+
* `Center`
41+
* `End`
42+
43+
### abp-nav-bar Attributes
44+
45+
- **nav-style**: The value indicates the color layout of the base navigation bar. Should be one of the following values:
46+
* `Default` (default value)
47+
* `Dark`
48+
* `Light`
49+
* `Dark_Primary`
50+
* `Dark_Secondary`
51+
* `Dark_Success`
52+
* `Dark_Danger`
53+
* `Dark_Warning`
54+
* `Dark_Info`
55+
* `Dark_Dark`
56+
* `Dark_Link`
57+
* `Light_Primary`
58+
* `Light_Secondary`
59+
* `Light_Success`
60+
* `Light_Danger`
61+
* `Light_Warning`
62+
* `Light_Info`
63+
* `Light_Dark`
64+
* `Light_Link`
65+
- **size:** The value indicates size of the base navigation bar. Should be one of the following values:
66+
* `Default` (default value)
67+
* `Sm`
68+
* `Md`
69+
* `Lg`
70+
* `Xl`
71+
72+
### abp-nav-item Attributes
73+
74+
**dropdown**: A value that sets the navigation item to be a dropdown menu if provided. Can be one of the following values:
75+
76+
* `false` (default value)
77+
* `true`
78+
79+
Example:
80+
81+
````csharp
82+
<abp-nav-bar size="Lg" navbar-style="Dark_Warning">
83+
<a abp-navbar-brand href="#">Navbar</a>
84+
<abp-navbar-toggle>
85+
<abp-navbar-nav>
86+
<abp-nav-item active="true">
87+
<a abp-nav-link href="#">Home <span class="sr-only">(current)</span></a>
88+
</abp-nav-item>
89+
<abp-nav-item>
90+
<a abp-nav-link href="#">Link</a>
91+
</abp-nav-item>
92+
<abp-nav-item dropdown="true">
93+
<abp-dropdown>
94+
<abp-dropdown-button nav-link="true" text="Dropdown" />
95+
<abp-dropdown-menu>
96+
<abp-dropdown-header>Dropdown header</abp-dropdown-header>
97+
<abp-dropdown-item href="#" active="true">Action</abp-dropdown-item>
98+
<abp-dropdown-item href="#" disabled="true">Another disabled action</abp-dropdown-item>
99+
<abp-dropdown-item href="#">Something else here</abp-dropdown-item>
100+
<abp-dropdown-divider />
101+
<abp-dropdown-item href="#">Separated link</abp-dropdown-item>
102+
</abp-dropdown-menu>
103+
</abp-dropdown>
104+
</abp-nav-item>
105+
<abp-nav-item>
106+
<a abp-nav-link disabled="true" href="#">Disabled</a>
107+
</abp-nav-item>
108+
</abp-navbar-nav>
109+
<span abp-navbar-text>
110+
Sample Text
111+
</span>
112+
</abp-navbar-toggle>
113+
</abp-nav-bar>
114+
````

0 commit comments

Comments
 (0)