Ox.Range: add 'arrowTooltips' option

This commit is contained in:
rolux 2013-11-16 20:27:19 +01:00
parent 3005d4a4aa
commit 13246cc15b

View file

@ -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')