aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/misc/help.component.html
blob: 1c3863e5236544f3f540a76af9732bdf1f80fbff (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
<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"
  title="Get help"
  i18n-title
  [attr.aria-pressed]="isPopoverOpened"
  [popover]="tooltipTemplate"
  [placement]="tooltipPlacement"
  [outsideClick]="true"
  (onHidden)="onPopoverHidden()"
  (onShown)="onPopoverShown()"
></span>