import { Component, OnInit, ViewChild, TemplateRef, ViewContainerRef, Input, SimpleChanges, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
import { VisAsstResponseComponent } from '../vis_asst_response/vis_asst_response.component'
//import { VisAsstResponseConstructorOptions } from "../VisAsstResponseConstructorOptions"
import { VisAsstResponseUpdateOptions } from "../VisAsstResponseUpdateOptions";
//import { FlexmonsterPivot } from "../../datagrid/flexmonster/flexmonster.angular4";

@Component({
    selector: 'vis_asst_response_table',
    templateUrl: './vis_asst_response_table.component.html',
    styleUrls: ['./vis_asst_response_table.component.css']
  })

export class VisAsstResponseTable extends VisAsstResponseComponent implements OnInit {
   
  @Input() context: any;
  @Input() template: any;
  // template: any;
  @ViewChild('tableDiv', { read: ViewContainerRef }) tableDiv: any;

  override ngOnInit()
  {
    super.ngOnInit()
  }


  override ngAfterViewInit()
  {
      
  }

  showMessage( updateOptions: VisAsstResponseUpdateOptions) : any
  {
    console.log('Print table updateOptions33 :::::',updateOptions);
    this.context = updateOptions['context'];
    console.log('Print table context 35-- :::::',this.context);
    // this.template = updateOptions['template'] ? updateOptions['template'] : {};
    this.template = updateOptions['template'];
    console.log('Print table template 37---- :::::',this.template);
    // this.tableDiv.nativeElement.innerHTML = this.template;
    // this.tableDiv.innerHTML = this.template;
    // document.getElementById("newTableDiv").innerHTML = this.template;
  }

  ngOnChanges(change: SimpleChanges){

  }


}