1 possible answer(s) on “Feature request: Tooltip enable check

  1. Yes, I can. Just to be clear, if the user wants to conditionally pass an html template, he would have to use something like the following, right?

    <template #tipContent>Hello, <b>{{name}}</b>!</template>
    <button type="button" class="btn btn-secondary" [ngbTooltip]="shouldDisplayTooltip ? tipContent : null">
      I've got markup and bindings in my tooltip!
    </button>
    

    or something like the following:

    <template *ngIf="shouldDisplayTooltip" #tipContent>Hello, <b>{{name}}</b>!</template>
    <button type="button" class="btn btn-secondary" [ngbTooltip]="tipContent">
      I've got markup and bindings in my tooltip!
    </button>
    

    Should we close the tooltip if it’s already opened and its content becomes null?