import { Component, OnInit, Input, OnChanges, ViewChild } from '@angular/core';

import { <%-SchemaName%>ListViewComponent } from './<%-schemaName%>-list-view.component';

@Component({
  <%- include(`/widgets/list-view/component.template.custom.ts`)%>
})
export class <%-SchemaName%><%-ComponentClassName%>Component extends <%-SchemaName%>ListViewComponent implements OnInit, OnChanges {
  public fields: any = {<% for (let field of briefView) {%><%
    if (field.alertDescription) {%>
  description: '<%-field.fieldName%>',<%
    }%><%
    if (field.alertLinkDisplay) {%>
  linkDisplay: '<%-field.fieldName%>',<%
    }%><%
    if (field.alertLinkURL) {%>
  linkURL: '<%-field.fieldName%>',<%
    }%><%
    if (field.alertColor) {%>
  color: '<%-field.fieldName%>',<%
    }%><%
  }%>
  };

  constructor() {
    super();
  }

  override ngOnInit() {
    super.ngOnInit();
  }

  ngOnChanges() {}


  public hideAlert(id: number) {
    this.list[id].mddsHideAlert = true;
  }
}
