easyui checkbox

  1. formatter: function (value) {  
  2.                     if (String(value) == "1") {  
  3.                         return '<span class="icon icon-enable"></span>';  
  4.                     }  
  5.                     else if (String(value) == "0") {  
  6.                         return '<span class="icon icon-disable"></span>';  
  7.                     }  
  8.                 },                  
  9. editor: {  
  10.                     type: 'checkbox',  
  11.                     options: {  
  12.                         on: 1,  
  13.                         off: 0  
  14.                     }  
  15.                 }  
posted @ 2013-04-25 13:28  玉伽  阅读(351)  评论(0编辑  收藏  举报