Skip to content

Commit

Permalink
docs: fix tooltips and tweak copy on “enable/disable sliders” button
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethkalmer committed Dec 17, 2016
1 parent 72952ce commit 12f6b89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion tests/dummy/app/styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@
position: relative;
padding: 20px 60px 50px 30px;
margin: 20px 0;
overflow: hidden;
font-size: 12px;
line-height: 1em;
}
.example-val {
font: 400 12px Arial;
Expand All @@ -241,6 +242,9 @@
.example.vertical .noUi-target {
height: 150px;
}
.example.tooltips ~ .example.tooltips {
margin-top: 0;
}

.before-example ~ .example {
margin-top: 0;
Expand Down
12 changes: 9 additions & 3 deletions tests/dummy/app/templates/options.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,13 @@

<div class="example" style="margin: 0; padding-bottom: 20px">
{{range-slider start=model.defaultStart disabled=model.disabled range=model.defaultRange}}
<button {{action "disableSlider"}}>Disable sliders</button>
<button {{action "disableSlider"}}>
{{#if model.disabled}}
Enable sliders
{{else}}
Disable sliders
{{/if}}
</button>
</div>

<div class="options">
Expand Down Expand Up @@ -300,11 +306,11 @@

<p>noUiSlider can provide a basic tooltip without using its events system. Set the tooltips option to <code>true</code> to enable. This option can also accept formatting options 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>

<div class="example" style="margin: 0; padding-bottom: 20px">
<div class="example tooltips" style="">
{{range-slider start=model.defaultStart tooltips=true range=model.defaultRange}}
</div>

<div class="example" style="margin: 0;">
<div class="example tooltips" style="">
{{range-slider start=model.defaultStart tooltips=model.tooltips range=model.defaultRange}}
</div>

Expand Down

0 comments on commit 12f6b89

Please sign in to comment.