mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-28 02:44:07 +01:00
project structure update for more accurate import
This commit is contained in:
parent
36288562e6
commit
945cdb7e4f
43 changed files with 47 additions and 42 deletions
31
src/app/theme/components/pageTop/pageTop.component.ts
Normal file
31
src/app/theme/components/pageTop/pageTop.component.ts
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import {Component} from 'angular2/core';
|
||||
|
||||
import {ThemeGlobal} from '../../../theme';
|
||||
import {ProfilePicturePipe} from '../../pipes';
|
||||
import {MsgCenter} from '../../components/msgCenter';
|
||||
import {ScrollPosition} from '../../directives';
|
||||
|
||||
@Component({
|
||||
selector: 'page-top',
|
||||
styles: [require('./pageTop.scss')],
|
||||
template: require('./pageTop.html'),
|
||||
directives: [MsgCenter, ScrollPosition],
|
||||
pipes: [ProfilePicturePipe]
|
||||
})
|
||||
export class PageTop {
|
||||
isScrolled:Boolean = false;
|
||||
isMenuCollapsed:boolean = false;
|
||||
|
||||
|
||||
constructor(private _themeGlobal:ThemeGlobal) {
|
||||
}
|
||||
|
||||
toggleMenu() {
|
||||
this.isMenuCollapsed = !this.isMenuCollapsed;
|
||||
this._themeGlobal.setData('menu.isCollapsed', this.isMenuCollapsed);
|
||||
}
|
||||
|
||||
scrolledChanged(isScrolled) {
|
||||
this.isScrolled = isScrolled;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue