add support for custom pip labels for faders

This commit is contained in:
jean-emmanuel 2016-03-28 17:22:49 +02:00
parent c79b095e62
commit a800ac7ab4
4 changed files with 67 additions and 52 deletions

View file

@ -9,6 +9,11 @@ horizontal:false, // [bool] set to true to display fader horizontall
align:'center', // [left|right] only display one scale and one meter
range: {"min":0,"max":1}, // [object] defining the breakpoints of the fader
// keys can be percentages or 'min' / 'max'
// custom label can be set by writing the value as an object:
// range: {
// min:{'-inf':0}
// max:1
// }
logScale: false, // [bool] use logarithmic scale (log10)
unit: false, // [string] value suffix
absolute:false, // [bool] set to true for absolute value on touch/click instead of relative dragging