view src/app/feature-extraction-menu/feature-extraction-menu.component.html @ 426:8fee76ab8e90

Take a callback as a prop for performing an action when requesting an output
author Lucas Thompson <dev@lucas.im>
date Tue, 06 Jun 2017 22:11:59 +0100
parents 4387175f594b
children 686cf74aa0a2
line wrap: on
line source
<div class="container">
  <md-list dense>
    <ng-container
      *ngFor="let extractor of extractors"
    >
      <h3 md-subheader>{{extractor.name}}</h3>
      <md-list-item *ngFor="let output of extractor.outputs">
        <md-icon md-list-icon>extension</md-icon>
        <h4 md-line>{{output.name}}</h4>
        <p md-line>{{output.combinedKey}}</p>
        <button md-icon-button (click)="extract(output)" [disabled]="disabled">
          <md-icon>add</md-icon>
        </button>
      </md-list-item>
      <md-divider></md-divider>
    </ng-container>
  </md-list>
</div>