mirror of
https://github.com/eugeny/tabby
synced 2025-12-14 03:35:41 +00:00
16 lines
574 B
TypeScript
16 lines
574 B
TypeScript
import { Component, Input, Output, EventEmitter, HostBinding } from '@angular/core'
|
|
import { BaseTabComponent } from '../components/baseTab.component'
|
|
|
|
@Component({
|
|
selector: 'tab-header',
|
|
template: require('./tabHeader.component.pug'),
|
|
styles: [require('./tabHeader.component.scss')],
|
|
})
|
|
export class TabHeaderComponent {
|
|
@Input() index: number
|
|
@Input() @HostBinding('class.active') active: boolean
|
|
@Input() @HostBinding('class.has-activity') hasActivity: boolean
|
|
@Input() tab: BaseTabComponent
|
|
@Output() closeClicked = new EventEmitter()
|
|
}
|