import { Component, EventEmitter, Input, Output } from '@angular/core';

@Component({
  selector: 'app-dynamic-textarea',
  templateUrl: './dynamic-textarea.component.html',
  styleUrls: ['./dynamic-textarea.component.css']
})
export class DynamicTextareaComponent {

  @Output() dataValue: EventEmitter<string | Array<any> | boolean> = new EventEmitter();

  @Input() tag:string;
  @Input() label:string;
  @Input() type:string;
  @Input() placeholder:string;
  @Input() value:string | Array<any> | boolean
  @Input() id:string;
  @Input() name:string;
  @Input() required:boolean;
  @Input() readonly:boolean;
  @Input() max:string;
  @Input() disabled:boolean;
  @Input() height:string;
  @Input() icon:string;

  constructor() {
    this.tag = '';
    this.label = '';
    this.type = '';
    this.placeholder = '';
    this.value = '';
    this.id = '';
    this.name = '';
    this.required = false;
    this.readonly = false;
    this.max = '';
    this.disabled = false;
    this.height = '';
    this.icon = '';
  }

}
