UNPKG

ng2-encrm-components

Version:
45 lines (44 loc) 1.71 kB
<div class="col-xs-12"> <h1 id="tooltips">Tooltips</h1> <button type="button" class="btn btn-secondary" tooltip="Tooltip on top" tooltipPlacement="top"> Tooltip on top </button> <button type="button" class="btn btn-secondary" [tooltip]="'Tooltip on right'" tooltipPlacement="right"> Tooltip on right </button> <button type="button" class="btn btn-secondary" [tooltip]="'Tooltip on bottom'" tooltipPlacement="bottom"> Tooltip on bottom </button> <button type="button" class="btn btn-secondary" [tooltip]="'Tooltip on left'" tooltipPlacement="left"> Tooltip on left </button> <br> <br> <tabset> <tab heading="HTML"> <pre><code highlight class="html"> &lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; [tooltip]=&quot;&#039;Tooltip on top&#039;&quot; tooltipPlacement=&quot;top&quot;&gt; Tooltip on top &lt;/button&gt; &lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; [tooltip]=&quot;&#039;Tooltip on right&#039;&quot; tooltipPlacement=&quot;right&quot;&gt; Tooltip on right &lt;/button&gt; &lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; [tooltip]=&quot;&#039;Tooltip on bottom&#039;&quot; tooltipPlacement=&quot;bottom&quot;&gt; Tooltip on bottom &lt;/button&gt; &lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; [tooltip]=&quot;&#039;Tooltip on left&#039;&quot; tooltipPlacement=&quot;left&quot;&gt; Tooltip on left &lt;/button&gt; </code></pre> </tab> <tab heading="TypeScript"> <pre><code highlight class="typescript"> Ng2BootstrapModule has to be imported </code></pre> </tab> </tabset> </div>