You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,16 @@
1
+
# 5.6.0 (2016-10-16)
2
+
## Features
3
+
- Add an `ticksArray` to display ticks at specific positions (#426).
4
+
5
+
To enable this new feature, the way the ticks are rendered has been changed. Now each tick is positioned absolutely using a `transform: translate()` instruction.
6
+
1
7
# 5.5.1 (2016-09-22)
2
8
## Fix
3
9
- Prevent losing focus when slider is rerendered (#415).
4
10
5
11
# 5.5.0 (2016-09-06)
6
12
## Features
7
-
- Add an autoHideLimitLabels to disable the auto-hiding of limit labels (#405).
13
+
- Add an `autoHideLimitLabels` to disable the auto-hiding of limit labels (#405).
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,7 @@ The default options are:
220
220
interval:350,
221
221
showTicks:false,
222
222
showTicksValues:false,
223
+
ticksArray:null,
223
224
ticksTooltip:null,
224
225
ticksValuesTooltip:null,
225
226
vertical:false,
@@ -340,6 +341,8 @@ Just pass an array with each slider value and that's it; the floor, ceil and ste
340
341
341
342
**showTicksValues** - _Boolean or Number (defaults to false)_: Set to true to display a tick and the step value for each step of the slider. Set a number to display ticks and the step value at intermediate positions. This number corresponds to the step between each tick.
342
343
344
+
**ticksArray** - _Array (defaults to null)_: Use to display ticks at specific positions. The array contains the index of the ticks that should be displayed. For example, [0, 1, 5] will display a tick for the first, second and sixth values.
345
+
343
346
**ticksTooltip** - _Function(value) (defaults to null)_: (requires angular-ui bootstrap) Used to display a tooltip when a tick is hovered. Set to a function that returns the tooltip content for a given value.
344
347
345
348
**ticksValuesTooltip** - _Function(value) (defaults to null)_: Same as `ticksTooltip` but for ticks values.
0 commit comments