EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on May 22, 2015, 07:40:38 PM



Title: Feature Request - Textbox Formatter()
Post by: devnull on May 22, 2015, 07:40:38 PM
It would be great if this feature could be added as a standard feature or extended ??

Code:
$('#tb').textbox({
formatter: function(val){
          if(val=='xxx') return '<span style="color:red">'+val.split('.')[0]+'</span>'
          else return val;
}
});

Thanks


Title: Re: Feature Request - Textbox Formatter()
Post by: stworthy on May 23, 2015, 09:17:19 AM
Please refer to this topic http://www.jeasyui.com/forum/index.php?topic=3729.msg10426#msg10426