import { Component, OnInit, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
import { Task } from '../../defs';

@Component({
  selector: 'app-task-list-item',
  templateUrl: 'task-list-item.component.html',
  styleUrls: ['task-list-item.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
  encapsulation: ViewEncapsulation.ShadowDom,
})
export class TaskListItemComponent implements OnInit {
  @Input()
  item: Task;

  @Input()
  showDate: boolean;

  @Input()
  showHeadline = true;

  @Input()
  showFullText = false;

  constructor() {}

  ngOnInit() {}
}
