mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-19 15:56:10 +01:00
Updates
This commit is contained in:
parent
be84925112
commit
00a47bf22f
9 changed files with 93 additions and 94 deletions
|
|
@ -52,14 +52,14 @@
|
|||
<h1>Sidebar</h1>
|
||||
<div class="subHeader"></div><p>The sidebar provides a convenient way to navigate the application.
|
||||
Only one sidebar is supported per angular application.
|
||||
This means that the sidebar is basically a singleton object.</p>
|
||||
This means that the sidebar is basically a singleton<span class="widont"> </span>object.</p>
|
||||
<p>The Sidebar can be added to the page using the <code>BaSidebar</code> component:</p>
|
||||
<pre><code class="lang-html"><span class="tag"><<span class="name">ba-sidebar</span>></span><span class="tag"></<span class="name">ba-sidebar</span>></span>
|
||||
<pre><code class="lang-html"><span class="tag"><<span class="title">ba-sidebar</span>></span><span class="tag"></<span class="title">ba-sidebar</span>></span>
|
||||
</code></pre>
|
||||
<p>The sidebar contains a <code><ba-menu></ba-menu></code> component which defines and renders the application menu based on routes provided. Generally the <code>ba-menu</code> component can be used separately from <code>ba-sidebar</code>.
|
||||
All menu items information is defined inside the <code>data</code> property of a route.</p>
|
||||
<h2 id="menu-configuration">Menu Configuration</h2>
|
||||
<p>All menu items are located inside the <code>src/app/app.routes.ts</code> file. Each route item can have a <code>menu</code> property under <code>data</code> defining a menu item:</p>
|
||||
All menu items information is defined inside the <code>data</code> property of a<span class="widont"> </span>route.</p>
|
||||
<h2 id="menu-configuration">Menu Configuration</h2>
|
||||
<p>All menu items are located inside the <code>src/app/app.routes.ts</code> file. Each route item can have a <code>menu</code> property under <code>data</code> defining a menu<span class="widont"> </span>item:</p>
|
||||
<pre><code class="lang-javascript"> {
|
||||
<span class="comment">// first, router configuration</span>
|
||||
path: <span class="string">'dashboard'</span>,
|
||||
|
|
@ -77,7 +77,7 @@ All menu items information is defined inside the <code>data</code> property of a
|
|||
}
|
||||
}
|
||||
</code></pre>
|
||||
<p>You also can define a list of sub-menu items like this:</p>
|
||||
<p>You also can define a list of sub-menu items like<span class="widont"> </span>this:</p>
|
||||
<pre><code class="lang-javascript"> {
|
||||
<span class="comment">// parent route</span>
|
||||
path: <span class="string">'charts'</span>,
|
||||
|
|
@ -110,8 +110,8 @@ All menu items information is defined inside the <code>data</code> property of a
|
|||
]
|
||||
}
|
||||
</code></pre>
|
||||
<h1 id="custom-menu-items">Custom menu items</h1>
|
||||
<p>You also can define a menu item not connected to any existing route in the application:</p>
|
||||
<h1 id="custom-menu-items">Custom menu items</h1>
|
||||
<p>You also can define a menu item not connected to any existing route in the<span class="widont"> </span>application:</p>
|
||||
<pre><code class="lang-javascript"> {
|
||||
path: <span class="string">''</span>, <span class="comment">// just leave the path empty</span>
|
||||
data: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue