[ADF-2640] remove option configurable (#3772)

* add optional delete button in tag node list

* add demo

* fix lint
This commit is contained in:
Eugenio Romano
2018-09-12 10:05:03 +01:00
committed by GitHub
parent cc396e2a11
commit 7ccbeee017
6 changed files with 53 additions and 2 deletions

View File

@@ -19,7 +19,18 @@
<div class="adf-tag-example-title">
{{'TAG.NODE_LIST' | translate }}
</div>
<adf-tag-node-list [nodeId]="nodeId"></adf-tag-node-list>
<adf-tag-node-list [showDelete]="showDelete" [nodeId]="nodeId"></adf-tag-node-list>
</mat-card>
<p class="toggle">
<mat-slide-toggle
id="adf-remove-button-tag"
[color]="'primary'"
(change)="toggleDeleteButton()"
[checked]="isReadOnly">
Show Delete Button
</mat-slide-toggle>
</p>
</div>
</div>

View File

@@ -25,4 +25,9 @@ import { Component } from '@angular/core';
export class TagComponent {
nodeId = '';
showDelete = true;
toggleDeleteButton() {
this.showDelete = !this.showDelete;
}
}