Ox.Range: add 'arrowTooltips' option
This commit is contained in:
parent
3005d4a4aa
commit
13246cc15b
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@ Ox.Range <f> Range Object
|
|||
arrows <b> if true, show arrows
|
||||
arrowStep <n> step when clicking arrows
|
||||
arrowSymbols <[s]> arrow symbols, like ['minus', 'plus']
|
||||
arrowTooltips <[s]> arrow tooltips
|
||||
max <n> maximum value
|
||||
min <n> minimum value
|
||||
orientation <s> 'horizontal' or 'vertical'
|
||||
|
@ -33,6 +34,7 @@ Ox.Range = function(options, self) {
|
|||
arrows: false,
|
||||
arrowStep: 1,
|
||||
arrowSymbols: ['left', 'right'],
|
||||
arrowTooltips: ['', ''],
|
||||
changeOnDrag: false,
|
||||
max: 100,
|
||||
min: 0,
|
||||
|
@ -86,6 +88,7 @@ Ox.Range = function(options, self) {
|
|||
self.$arrows[i] = Ox.Button({
|
||||
overlap: i == 0 ? 'right' : 'left',
|
||||
title: self.options.arrowSymbols[i],
|
||||
tooltip: self.options.arrowTooltips[i],
|
||||
type: 'image'
|
||||
})
|
||||
.addClass('OxArrow')
|
||||
|
|
Loading…
Reference in a new issue