Skip to content

Commit 5e6a8ba

Browse files
committed
feat: sidebar right toggle custom icon
1 parent e42b41d commit 5e6a8ba

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

library/angular-admin-lte/src/lib/layout/header/header.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
</ng-container>
1212
</a>
1313
<div *ngIf="isSidebarRightToggle" class="sidebar-right-toggle">
14-
<a #sidebarRightToggleElement href="#"><i class="fa fa-gears"></i></a>
14+
<a #sidebarRightToggleElement href="#">
15+
<i [class]="sidebarRightToggleIconClasses ? sidebarRightToggleIconClasses : 'fa fa-gears'"></i>
16+
</a>
1517
</div>
1618
<ng-content></ng-content>
1719
</nav>

library/angular-admin-lte/src/lib/layout/header/header.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export class HeaderComponent implements AfterViewInit, OnDestroy {
5656
@Input() isSidebarLeftToggle = true;
5757
@Input() sidebarLeftToggleIconClasses;
5858
@Input() isSidebarRightToggle = true;
59+
@Input() sidebarRightToggleIconClasses;
5960
@Input() logoLink: string | any[] = '/';
6061

6162
@ContentChild(HeaderLogoComponent, /* TODO: add static flag */ {}) public headerLogoComponent: HeaderLogoComponent;

src/app/+layout/header/header.component.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@
3939
<td>Defines the sidebar left toggle button icon classes.</td>
4040
</tr>
4141
<tr>
42-
<td>isSidebarLeftToggle</td>
42+
<td>isSidebarRightToggle</td>
4343
<td>boolean</td>
4444
<td>true</td>
45-
<td>Defines if the sidebar left toggle button is activated.</td>
45+
<td>Defines if the sidebar right toggle button is activated.</td>
46+
</tr>
47+
<tr>
48+
<td>SidebarRightToggleClasses</td>
49+
<td>string</td>
50+
<td>null</td>
51+
<td>Defines the sidebar right toggle button icon classes.</td>
4652
</tr>
4753
</tbody>
4854
</table>

0 commit comments

Comments
 (0)