mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-09 05:50:08 +00:00
30 lines
612 B
TypeScript
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 {
|
|
}
|
|
}
|