@engie-group/fluid-design-system-angular
Version:
Fluid Design System Angular
69 lines (61 loc) • 1.77 kB
text/typescript
import { CommonModule } from '@angular/common';
import {
booleanAttribute,
ChangeDetectionStrategy,
Component,
ContentChild,
ContentChildren,
EventEmitter,
HostBinding,
Input,
Output,
QueryList,
ViewEncapsulation
} from '@angular/core';
import { ListGroupComponent } from '../list-group/list-group.component';
import { ListItemComponent } from '../list-item/list-item.component';
import { SidebarFooterDirective } from './directives/sidebar-footer.directive';
import { SidebarItemDirective } from './directives/sidebar-item.directive';
import { SidebarLogoDirective } from './directives/sidebar-logo.directive';
export class SidebarComponent {
private staticClass = 'nj-sidebar';
/**
* Whether the sidebar should be folded
*/
isFolded = false;
/**
* Whether the sidebar should have a fold list item
*/
hasFoldItem = true;
/**
* Fold list item label
*/
foldItemLabel = 'Fold';
/**
* Emits an event when fold list item is clicked
*/
foldItemClicked = new EventEmitter<MouseEvent>();
protected logo?: SidebarLogoDirective;
protected footerElements?: QueryList<SidebarFooterDirective>;
}