Files
paperless-ngx/src-ui/src/app/components/common/page-header/page-header.component.ts
2025-01-01 21:52:45 -08:00

35 lines
701 B
TypeScript

import { Component, Input } from '@angular/core'
import { Title } from '@angular/platform-browser'
import { environment } from 'src/environments/environment'
@Component({
selector: 'pngx-page-header',
templateUrl: './page-header.component.html',
styleUrls: ['./page-header.component.scss'],
standalone: false,
})
export class PageHeaderComponent {
constructor(private titleService: Title) {}
_title = ''
@Input()
set title(title: string) {
this._title = title
this.titleService.setTitle(`${this.title} - ${environment.appTitle}`)
}
get title() {
return this._title
}
@Input()
subTitle: string = ''
@Input()
info: string
@Input()
infoLink: string
}