EasyUI Forum
November 04, 2025, 04:02:37 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Show icon before text in grid column  (Read 8704 times)
arma
Full Member
***
Posts: 110


View Profile
« on: November 09, 2015, 04:08:43 PM »

Hi,

How to reuse existing jeasui css icon class to show icon before text.

In grid column formatter if meet condition then i would like to return for example "[icon] some text".

Thanks
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 10, 2015, 12:46:48 AM »

Please refer to this 'formatter' function.
Code:
function formatF(value,row){
return '<span class="icon-save" style="display:inline-block;width:16px;height:16px;vertical-align:middle"></span>'+value;
}
Logged
arma
Full Member
***
Posts: 110


View Profile
« Reply #2 on: November 11, 2015, 02:01:09 PM »

Nice, thanks a lot stworthy Cheesy
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!