mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
31 lines
953 B
TypeScript
31 lines
953 B
TypeScript
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
|
import { environment } from 'src/environments/environment';
|
|
import { ThemeService } from 'src/app/services/theme.service';
|
|
|
|
@Component({
|
|
selector: 'app-task-list-header',
|
|
templateUrl: './task-list-header.page.html',
|
|
styleUrls: ['./task-list-header.page.scss'],
|
|
})
|
|
export class TaskListHeaderPage implements OnInit {
|
|
|
|
@Input() headerName = 'name'
|
|
@Input() goBackButton = false
|
|
@Input() loading = true
|
|
@Input() loaderTop = false;
|
|
@Input() loaderBottom = false;
|
|
@Output() goBack = new EventEmitter<any>();
|
|
@Output() reorderList = new EventEmitter<any>();
|
|
@Output() changeFilterName = new EventEmitter<any>();
|
|
|
|
environment = environment
|
|
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Todos'
|
|
@Input() ordinance: string = 'old'
|
|
|
|
constructor(
|
|
public ThemeService: ThemeService,
|
|
) { }
|
|
|
|
ngOnInit() {}
|
|
}
|