mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-11 08:02:34 +01:00
scrollPosition - baScrollPosition
This commit is contained in:
parent
8b673b1f48
commit
5f360a73a8
6 changed files with 12 additions and 11 deletions
|
|
@ -1,15 +1,16 @@
|
|||
import {Directive, Input, Output, EventEmitter, HostListener} from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
selector: '[scrollPosition]'
|
||||
selector: '[baScrollPosition]'
|
||||
})
|
||||
export class ScrollPosition {
|
||||
@Input() maxHeight:Number;
|
||||
@Output() scrollChange:EventEmitter<Boolean> = new EventEmitter<Boolean>();
|
||||
export class BaScrollPosition {
|
||||
|
||||
private _isScrolled:Boolean;
|
||||
@Input() public maxHeight:number;
|
||||
@Output() public scrollChange:EventEmitter<boolean> = new EventEmitter<boolean>();
|
||||
|
||||
ngOnInit() {
|
||||
private _isScrolled:boolean;
|
||||
|
||||
public ngOnInit():void {
|
||||
this.onWindowScroll();
|
||||
}
|
||||
|
||||
1
src/app/theme/directives/baScrollPosition/index.ts
Normal file
1
src/app/theme/directives/baScrollPosition/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './baScrollPosition.directive.ts';
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
export * from './scrollPosition';
|
||||
export * from './baScrollPosition';
|
||||
export * from './baThemeRun';
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
export * from './scrollPosition.directive.ts';
|
||||
Loading…
Add table
Add a link
Reference in a new issue