I am trying to trigger ngx-bootstrap Tooltip from javascript. Below code is working without any problem. Now I want to call show() function from javascript side manually.
Problem is I don't know what "bs-tooltip" is. Is it an id of element created by ngx-bootstrap. If so how can I get this element from javascript?
<p>
<span tooltip="Hello there! I was triggered manually"
triggers="" #customTooltip="bs-tooltip">
This text has attached tooltip
</span>
</p>
<button type="button" class="btn btn-success" (click)="customTooltip.show()">
Show
</button>
<button type="button" class="btn btn-warning" (click)="customTooltip.hide()">
Hide
</button>
<button type="button" class="btn btn-info" (click)="customTooltip.toggle()">
Toggle
</button>
EDIT:
document.getElementById("bs-tooltip") //returns null