Ox.Input: add 'clearTooltip' option

This commit is contained in:
rlx 2013-08-11 09:50:43 +00:00
parent 0a5ae83f35
commit 2fb2876fd2

View file

@ -18,6 +18,7 @@ Ox.Input <f> Input Element
<f> function(key, value, blur, callback), returns value
autovalidate <f> --remote validation--
clear <b> if true, has clear button
clearTooltip <s|f|''> clear button tooltip
changeOnKeypress <b> if true, fire change event while typing
disabled <b> if true, is disabled
height <n> px (for type='textarea' and type='range' with orientation='horizontal')
@ -87,6 +88,7 @@ Ox.Input = function(options, self) {
autovalidate: null,
changeOnKeypress: false,
clear: false,
clearTooltip: '',
decimals: 0,
disabled: false,
height: 16,
@ -255,6 +257,7 @@ Ox.Input = function(options, self) {
self.$button = Ox.Button({
overlap: 'left',
title: 'close',
tooltip: self.options.clearTooltip,
type: 'image'
})
.css({