mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2640] remove option configurable (#3772)
* add optional delete button in tag node list * add demo * fix lint
This commit is contained in:
@@ -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>
|
||||
|
@@ -25,4 +25,9 @@ import { Component } from '@angular/core';
|
||||
export class TagComponent {
|
||||
|
||||
nodeId = '';
|
||||
showDelete = true;
|
||||
|
||||
toggleDeleteButton() {
|
||||
this.showDelete = !this.showDelete;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user