Skip to content

Commit

Permalink
Document removeTooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Feb 8, 2019
1 parent 7e05cd0 commit ce20522
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/slider-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@

<p>noUiSlider can provide a basic tooltip using the <code>tooltips</code> option. This option can also accept <a href="/nouislider/slider-read-write/#section-formatting">formatting options</a> to format the tooltips content. In that case, pass an <code>array</code> with a formatter for each handle, <code>true</code> to use the default or <code>false</code> to display no tooltip.</p>

<p>Tooltips can be removed from a slider using <code>removeTooltips</code>.</p>
<p>Tooltips can be removed from a slider using the <code>removeTooltips()</code> method.</p>

<div class="example overflow">
<div id="slider-tooltips"></div>
Expand Down
3 changes: 3 additions & 0 deletions documentation/slider-options/tooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ noUiSlider.create(tooltipSlider, {
'max': 200
}
});

// Remove tooltips:
// tooltipSlider.noUiSlider.removeTooltips();

0 comments on commit ce20522

Please sign in to comment.