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
|
arrows <b> if true, show arrows
|
||||||
arrowStep <n> step when clicking arrows
|
arrowStep <n> step when clicking arrows
|
||||||
arrowSymbols <[s]> arrow symbols, like ['minus', 'plus']
|
arrowSymbols <[s]> arrow symbols, like ['minus', 'plus']
|
||||||
|
arrowTooltips <[s]> arrow tooltips
|
||||||
max <n> maximum value
|
max <n> maximum value
|
||||||
min <n> minimum value
|
min <n> minimum value
|
||||||
orientation <s> 'horizontal' or 'vertical'
|
orientation <s> 'horizontal' or 'vertical'
|
||||||
|
@ -33,6 +34,7 @@ Ox.Range = function(options, self) {
|
||||||
arrows: false,
|
arrows: false,
|
||||||
arrowStep: 1,
|
arrowStep: 1,
|
||||||
arrowSymbols: ['left', 'right'],
|
arrowSymbols: ['left', 'right'],
|
||||||
|
arrowTooltips: ['', ''],
|
||||||
changeOnDrag: false,
|
changeOnDrag: false,
|
||||||
max: 100,
|
max: 100,
|
||||||
min: 0,
|
min: 0,
|
||||||
|
@ -86,6 +88,7 @@ Ox.Range = function(options, self) {
|
||||||
self.$arrows[i] = Ox.Button({
|
self.$arrows[i] = Ox.Button({
|
||||||
overlap: i == 0 ? 'right' : 'left',
|
overlap: i == 0 ? 'right' : 'left',
|
||||||
title: self.options.arrowSymbols[i],
|
title: self.options.arrowSymbols[i],
|
||||||
|
tooltip: self.options.arrowTooltips[i],
|
||||||
type: 'image'
|
type: 'image'
|
||||||
})
|
})
|
||||||
.addClass('OxArrow')
|
.addClass('OxArrow')
|
||||||
|
|
Loading…
Reference in a new issue