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

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

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

  @Input() name: string;
  @Input() tag: string;
  @Input() disabled: boolean;
  @Input() id: string;
  @Input() label : string;
  @Input() isMultiCheck: boolean;
  @Input() arrDataCheck: Array<any>;

  constructor() {
    this.name = '';
    this.tag = '';
    this.disabled = false;
    this.id = '';
    this.label = '';
    this.isMultiCheck = false;
    this.arrDataCheck = [];
  }

  ngOnInit(): void {
  }

}
