EasyUI Forum
July 17, 2024, 02:57:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Textbox formatter to format text color  (Read 163 times)
jega
Full Member
***
Posts: 194


View Profile
« on: July 07, 2024, 11:27:23 AM »

Hi.

Need a formatter in textbox as combobox. I know there is other topics about this, but they are very old, and doesn't give me an answer how to extend it, to do text colors

Sample

<input id="text1" name="text1" class="easyui-textbox" style="width: 550px" data-options="
   formatter: formatText">


function formatText(value){
   var s = '<span style="color: blue">' + value + '</span><br>'
   return s;
}


Regards Jesper
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!