add "noPip" option to fader & knob (hide pip scale and frees some space)
This commit is contained in:
parent
bf0173c251
commit
d657ec7ef6
6 changed files with 32 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
|
@ -18,6 +18,7 @@ module.exports.options = {
|
|||
height:'auto',
|
||||
align:'center',
|
||||
horizontal:false,
|
||||
noPip:false,
|
||||
color:'auto',
|
||||
css:'',
|
||||
|
||||
|
|
@ -68,6 +69,8 @@ module.exports.create = function(widgetData,container) {
|
|||
container.addClass('align-'+widgetData.align)
|
||||
}
|
||||
|
||||
if (widgetData.noPip) wrapper.addClass('no-pip')
|
||||
|
||||
gauge.size = 0
|
||||
fader.size = 0
|
||||
wrapper.size = 0
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ module.exports.options = {
|
|||
width:'auto',
|
||||
height:'auto',
|
||||
color:'auto',
|
||||
noPip:false,
|
||||
css:'',
|
||||
|
||||
separator2:'behaviour',
|
||||
|
|
@ -60,6 +61,8 @@ module.exports.create = function(widgetData,container) {
|
|||
logScale = widgetData.logScale,
|
||||
roundFactor = Math.pow(10,widgetData.precision)
|
||||
|
||||
if (widgetData.noPip) wrapper.addClass('no-pip')
|
||||
|
||||
|
||||
var rangeKeys = [],
|
||||
rangeVals = [],
|
||||
|
|
|
|||
|
|
@ -1717,6 +1717,7 @@ module.exports.options = {
|
|||
height:'auto',
|
||||
align:'center',
|
||||
horizontal:false,
|
||||
noPip:false,
|
||||
color:'auto',
|
||||
css:'',
|
||||
|
||||
|
|
@ -1767,6 +1768,8 @@ module.exports.create = function(widgetData,container) {
|
|||
container.addClass('align-'+widgetData.align)
|
||||
}
|
||||
|
||||
if (widgetData.noPip) wrapper.addClass('no-pip')
|
||||
|
||||
gauge.size = 0
|
||||
fader.size = 0
|
||||
wrapper.size = 0
|
||||
|
|
@ -2002,6 +2005,7 @@ module.exports.options = {
|
|||
width:'auto',
|
||||
height:'auto',
|
||||
color:'auto',
|
||||
noPip:false,
|
||||
css:'',
|
||||
|
||||
separator2:'behaviour',
|
||||
|
|
@ -2045,6 +2049,8 @@ module.exports.create = function(widgetData,container) {
|
|||
logScale = widgetData.logScale,
|
||||
roundFactor = Math.pow(10,widgetData.precision)
|
||||
|
||||
if (widgetData.noPip) wrapper.addClass('no-pip')
|
||||
|
||||
|
||||
var rangeKeys = [],
|
||||
rangeVals = [],
|
||||
|
|
|
|||
|
|
@ -183,6 +183,15 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.no-pip {
|
||||
.pips {
|
||||
display: none!important;
|
||||
}
|
||||
.fader {
|
||||
margin:0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -203,6 +212,9 @@
|
|||
display: block;
|
||||
flex:0;
|
||||
flex-shrink: 0;
|
||||
&.no-pip {
|
||||
padding: 20rem;
|
||||
}
|
||||
}
|
||||
.fader {
|
||||
width:100%;
|
||||
|
|
|
|||
|
|
@ -37,6 +37,13 @@
|
|||
cursor: -webkit-grabbing;
|
||||
}
|
||||
|
||||
&.no-pip {
|
||||
margin-bottom: 0;
|
||||
.pips {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.knob-mask {
|
||||
width:58%;
|
||||
padding-bottom:58%;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue