display option ready

This commit is contained in:
vitalets
2012-12-06 00:33:07 +04:00
parent 212d161f08
commit 8ed61d6b6b
14 changed files with 203 additions and 128 deletions

@ -49,8 +49,7 @@ To create your own input you should inherit from this class.
@param {DOMElement} element
**/
value2html: function(value, element) {
var html = this.escape(value);
$(element).html(html);
$(element).text(value);
},
/**
@ -65,7 +64,7 @@ To create your own input you should inherit from this class.
},
/**
Converts value to string (for submitting to server)
Converts value to string (for comparering)
@method value2str(value)
@param {mixed} value
@ -86,6 +85,17 @@ To create your own input you should inherit from this class.
return str;
},
/**
Converts value for submitting to server
@method value2submit(value)
@param {mixed} value
@returns {mixed}
**/
value2submit: function(value) {
return value;
},
/**
Sets value of input.
@ -121,7 +131,7 @@ To create your own input you should inherit from this class.
@method clear()
**/
clear: function() {
clear: function() {
this.$input.val(null);
},