Skip to content
Snippets Groups Projects
Commit 38ee5cf1 authored by François Agneray's avatar François Agneray
Browse files

Improvments renderers

parent 74909882
No related branches found
No related tags found
1 merge request!73Develop
Pipeline #9778 passed
Pipeline: anis-next

#9779

    <a *ngIf="value" class="btn btn-outline-primary btn-sm" (click)="openModal(modal)">
    <a *ngIf="isEmpty()" class="btn btn-outline-primary btn-sm" (click)="openModal(modal)">
    JSON
    </a>
    ......
    ......@@ -44,4 +44,12 @@ export class JsonRendererComponent extends AbstractRendererComponent {
    Object.assign({}, { class: 'modal-fit-content' })
    );
    }
    isEmpty() {
    if (!this.value || Object.keys(this.value).length === 0) {
    return false;
    } else {
    return true;
    }
    }
    }
    <a *ngIf="value" [href]="getValue()" target="{{(getConfig().blank) ? '_blank' : '_self'}}"
    [ngClass]="{'btn btn-outline-primary btn-sm': (getConfig().display=='text-button' || getConfig().display=='icon-button')}">
    [ngClass]="{'btn btn-outline-primary btn-sm btn-block': (getConfig().display=='text-button' || getConfig().display=='icon-button')}">
    <span *ngIf="getConfig().display !== 'icon-button'">{{ getText() }}</span>
    <span *ngIf="getConfig().display === 'icon-button'" class="{{getConfig().icon}}"></span>
    </a>
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment