range: add split opt
This commit is contained in:
parent
51eb674cd3
commit
30b55b6652
1 changed files with 7 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ module.exports = class Range extends _widgets_base {
|
|||
precision:2,
|
||||
address:'auto',
|
||||
preArgs:[],
|
||||
split:false,
|
||||
target:[]
|
||||
}
|
||||
|
||||
|
|
@ -57,6 +58,12 @@ module.exports = class Range extends _widgets_base {
|
|||
|
||||
super({...options, html: html})
|
||||
|
||||
this.split = this.getProp('split')?
|
||||
typeof this.getProp('split') == 'object' && this.getProp('split').length == 2 ?
|
||||
this.getProp('split')
|
||||
: [this.getProp('address') + '/low', this.getProp('address') + '/high']
|
||||
: false
|
||||
|
||||
this.wrapper = this.widget.find('.wrapper')
|
||||
|
||||
this.faders = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue