mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4405] [ADF-4423] Fix clipboard directive on json cell (#4623)
* [ADF-4405] [ADF-4423] Fix clipboard directive on json cell * Update clipboard.directive.ts * fix spell
This commit is contained in:
committed by
Eugenio Romano
parent
834c32f23f
commit
630b1043a9
@@ -49,9 +49,11 @@ export class ClipboardDirective {
|
||||
|
||||
@HostListener('mouseenter')
|
||||
showTooltip() {
|
||||
const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent);
|
||||
const componentRef = this.viewContainerRef.createComponent(componentFactory).instance;
|
||||
componentRef.placeholder = this.placeholder;
|
||||
if (this.placeholder) {
|
||||
const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent);
|
||||
const componentRef = this.viewContainerRef.createComponent(componentFactory).instance;
|
||||
componentRef.placeholder = this.placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
@HostListener('mouseleave')
|
||||
|
@@ -27,9 +27,7 @@ import { DataTableCellComponent } from './datatable-cell.component';
|
||||
<pre
|
||||
class="adf-datatable-json-cell"
|
||||
[adf-clipboard]="'CLIPBOARD.CLICK_TO_COPY'"
|
||||
[clipboard-notification]="'CLIPBOARD.SUCCESS_COPY'">
|
||||
{{ value$ | async | json }}
|
||||
</pre>
|
||||
[clipboard-notification]="'CLIPBOARD.SUCCESS_COPY'">{{ value$ | async | json }}</pre>
|
||||
</span>
|
||||
</ng-container>
|
||||
<ng-template #defaultJsonTemplate>
|
||||
|
Reference in New Issue
Block a user