align option for fader
This commit is contained in:
parent
14868f3b78
commit
b06bad1596
4 changed files with 36 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ module.exports.options = {
|
|||
top:'auto',
|
||||
width:'auto',
|
||||
height:'auto',
|
||||
align:'center',
|
||||
horizontal:false,
|
||||
color:'auto',
|
||||
css:'',
|
||||
|
|
@ -61,7 +62,12 @@ module.exports.create = function(widgetData,container) {
|
|||
roundFactor = Math.pow(10,widgetData.precision)
|
||||
|
||||
|
||||
if (widgetData.horizontal) container.addClass('horizontal')
|
||||
if (widgetData.horizontal) {
|
||||
container.addClass('horizontal')
|
||||
delete widgetData.align
|
||||
} else {
|
||||
container.addClass('align-'+widgetData.align)
|
||||
}
|
||||
|
||||
handle.size = 0
|
||||
fader.size = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue