Mercurial > hg > ugly-duckling
annotate src/app/feature-extraction-menu/feature-extraction-menu.component.html @ 431:686cf74aa0a2
Allow clicking whole list item to extract. Kinda makes the plus button redundant. Add guard in extract method.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 07 Jun 2017 08:46:30 +0100 |
parents | 4387175f594b |
children | 5220174f2712 |
rev | line source |
---|---|
dev@100 | 1 <div class="container"> |
dev@423 | 2 <md-list dense> |
dev@423 | 3 <ng-container |
dev@100 | 4 *ngFor="let extractor of extractors" |
dev@100 | 5 > |
dev@423 | 6 <h3 md-subheader>{{extractor.name}}</h3> |
dev@431 | 7 <md-list-item |
dev@431 | 8 *ngFor="let output of extractor.outputs" |
dev@431 | 9 (click)="extract(output)"> |
dev@423 | 10 <md-icon md-list-icon>extension</md-icon> |
dev@423 | 11 <h4 md-line>{{output.name}}</h4> |
dev@423 | 12 <p md-line>{{output.combinedKey}}</p> |
dev@423 | 13 <button md-icon-button (click)="extract(output)" [disabled]="disabled"> |
dev@423 | 14 <md-icon>add</md-icon> |
dev@423 | 15 </button> |
dev@423 | 16 </md-list-item> |
dev@423 | 17 <md-divider></md-divider> |
dev@423 | 18 </ng-container> |
dev@423 | 19 </md-list> |
dev@100 | 20 </div> |