mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-19 06:42:35 +00:00
37 lines
934 B
TypeScript
37 lines
934 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
|
|
|
@Component({
|
|
selector : 'simple-left-sidebar-4',
|
|
templateUrl: './left-sidebar-3.component.html',
|
|
styleUrls : ['./left-sidebar-3.component.scss']
|
|
})
|
|
export class SimpleLeftSidebar3Component
|
|
{
|
|
/**
|
|
* Constructor
|
|
*
|
|
* @param {FuseSidebarService} _fuseSidebarService
|
|
*/
|
|
constructor(
|
|
private _fuseSidebarService: FuseSidebarService
|
|
)
|
|
{
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------------------------------
|
|
// @ Public methods
|
|
// -----------------------------------------------------------------------------------------------------
|
|
|
|
/**
|
|
* Toggle sidebar
|
|
*
|
|
* @param name
|
|
*/
|
|
toggleSidebar(name): void
|
|
{
|
|
this._fuseSidebarService.getSidebar(name).toggleOpen();
|
|
}
|
|
}
|