aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/misc/help.component.html
blob: e31eef06a69204975519ca539921466df47f42fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<ng-template #tooltipTemplate>
  <ng-template [ngIf]="preHtml">
    <p [innerHTML]="preHtml"></p>
    <br />
  </ng-template>

  <p [innerHTML]="mainHtml"></p>

  <ng-template [ngIf]="postHtml">
    <br />
    <p [innerHTML]="postHtml"></p>
  </ng-template>
</ng-template>

<span
  role="button"
  class="help-tooltip-button"
  container="body"
  title="Get help"
  i18n-title
  popoverClass="help-popover"
  [attr.aria-pressed]="isPopoverOpened"
  [ngbPopover]="tooltipTemplate"
  [placement]="tooltipPlacement"
  autoClose="outside"
  (onHidden)="onPopoverHidden()"
  (onShown)="onPopoverShown()"
>
  <my-global-icon iconName="help"></my-global-icon>
</span>