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