- removed knob pan option (looked too ugly, use css var to hide gauge instead)

- knob/fader/toggle gauge width reduced to 2px, looks slicker
This commit is contained in:
jean-emmanuel 2016-03-25 01:26:13 +01:00
parent f732feff29
commit aed0812b04
8 changed files with 65 additions and 64 deletions

View file

@ -25,6 +25,10 @@ Every widget has the following properties:
**Important note about position (`left` & `top`)** : by default, the widget will be positioned according to the normal flow of the page (from left to right, by order of creation).
## CSS
The css property can be used to override theming variables (see [theming](theming.md) for a widget. Also, some widgets expose specific theming variables that allow a finer customization.
## Widget specifics
Each widget type comes with an additional set of specific properties which are described in the pages listed below.

View file

@ -15,6 +15,14 @@ absolute:false, // [bool] set to true for absolute value on touch/
meter:false, // [bool] set to true to display a vumeter which will display values send to '/widgets_path/meter'
```
**theming vars**
```
--color-gauge:CSS_COLOR;
--color-knob:CSS_COLOR;
--color-pips:CSS_COLOR;
```
## knob
```js
type:'knob',
@ -22,5 +30,12 @@ range: {"min":0,"max":1}, // [object] minimum and maximum values
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
pan:false // [bool] true for panning knob
```
**theming vars**
```
--color-gauge:CSS_COLOR;
--color-knob:CSS_COLOR;
--color-pips:CSS_COLOR;
```