Eugene Pankov 0ea346a6ae wip
2017-04-11 02:22:48 +02:00

30 lines
612 B
TypeScript

import { BehaviorSubject } from 'rxjs'
import { EventEmitter, ViewRef } from '@angular/core'
export abstract class BaseTabComponent {
id: number
title$ = new BehaviorSubject<string>(null)
scrollable: boolean
hasActivity = false
focused = new EventEmitter<any>()
blurred = new EventEmitter<any>()
hostView: ViewRef
private static lastTabID = 0
constructor () {
this.id = BaseTabComponent.lastTabID++
}
displayActivity (): void {
this.hasActivity = true
}
getRecoveryToken (): any {
return null
}
destroy (): void {
}
}