File
Implements
Metadata
| encapsulation |
ViewEncapsulation.None |
| host |
{ } |
| selector |
stbui-sidenav-layout-header |
| template |
<ng-content></ng-content>
|
|
color
|
Type : "primary" | "accent" | "warn"
|
Default value : 'primary'
|
|
|
import {
Component,
OnInit,
Input,
ViewEncapsulation,
ContentChild
} from '@angular/core';
@Component({
selector: 'stbui-sidenav-layout-header',
template: '<ng-content></ng-content>',
encapsulation: ViewEncapsulation.None,
host: {
class: 'sidenav-layout-header'
}
})
export class SidenavLayoutHeaderComponent implements OnInit {
@Input() color: 'primary' | 'accent' | 'warn' = 'primary';
constructor() { }
ngOnInit() { }
}
@Component({
selector: 'stbui-sidenav-layout-toolbar',
template: '<ng-content></ng-content>',
encapsulation: ViewEncapsulation.None,
host: {
class: 'sidenav-layout-toolbar'
}
})
export class SidenavLayoutToolbarComponent implements OnInit {
constructor() { }
ngOnInit() { }
}
@Component({
selector: 'stbui-sidenav-layout-content',
template: '<ng-content></ng-content>',
encapsulation: ViewEncapsulation.None,
host: {
class: 'sidenav-layout-content'
}
})
export class SidenavLayoutContentComponent implements OnInit {
constructor() { }
ngOnInit() { }
}
@Component({
selector: 'stbui-sidenav-layout-side',
template: '<ng-content></ng-content>',
encapsulation: ViewEncapsulation.None,
host: {
class: 'stbui-sidenav-layout-side'
}
})
export class SidenavLayoutSideComponent implements OnInit {
constructor() { }
ngOnInit() { }
}
@Component({
selector: 'stbui-sidenav-layout, stbui-sidenav-layout-container',
templateUrl: './sidenav-layout.component.html',
styleUrls: ['./sidenav-layout.component.scss'],
encapsulation: ViewEncapsulation.None,
host: {
class: 'layout-container',
'[class.layout-strategy]': 'scrollStrategy === "strategy"'
}
})
export class SidenavLayoutComponent implements OnInit {
@Input() position: 'start' | 'end' = 'start';
@Input() scrollStrategy;
@ContentChild(SidenavLayoutHeaderComponent, { static: false })
_header: SidenavLayoutHeaderComponent;
constructor() { }
ngOnInit() { }
}
Legend
Html element with directive