All files / src/app/extensions/punchout/pages/account-punchout-cxml-configuration/formly/cxml-help-text-wrapper cxml-help-text-wrapper.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 221x                                          
<div class="cxml-text-container">
  @if (helpText) {
    <button
      class="btn btn-link cxml-text-toggle top-0 mt-2"
      type="button"
      [attr.aria-expanded]="isCollapsed"
      [title]="
        isCollapsed
          ? ('account.punchout.cxml.toggle.helptext_close.title' | translate)
          : ('account.punchout.cxml.toggle.helptext_open.title' | translate)
      "
      (click)="isCollapsed = !isCollapsed"
    >
      <i class="bi" [ngClass]="isCollapsed ? 'bi-chevron-up' : 'bi-chevron-down'"></i>
    </button>
  }
 
  <ng-template #fieldComponent />
 
  <div class="mt-3" [ishServerHtml]="helpText" [ngbCollapse]="!isCollapsed"></div>
</div>