JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script src="http://www.jeasyui.com/easyui/datagrid-groupview.js"></script>
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/icon.css">
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/metro-gray/easyui.css">
<input 
  id="PROGRAM_NAME" 
  class="easyui-textbox" 
  style="width:300px;height:24px;" 
  data-options="
     editable: false,
     prompt: 'Program Name',
     iconWidth: 22,
     icons: [{
           iconCls:'icon-add',
           handler: function(e){
               alert('add');
           }},{
           iconCls:'icon-edit',
           handler: function(e){
               alert('edit');
           }
     }]
">
<br/> <br/>    
<input 
  class="easyui-textbox" 
  id="PROGRAM_NAME_2" 
  data-options="
     buttonIcon:'icon-edit',
     prompt:'Program Name',
     onClickButton:function(){
         alert('edit');
     },
     editable: false" 
  style="width:300px;height:24px;
"> 
<br/> <br/>    
<button onCLick="disableEdit()">Disable Edit</button>
<button onClick="enableEdit()">Enable Edit</button>

JavaScript

function disableEdit(){
    $('#PROGRAM_NAME').textbox({icons:[{
        iconCls:'icon-add',
        handler: iconAddAction
      },
    ]});
    $('#PROGRAM_NAME').textbox({editable: false});
}
function enableEdit(){
    $('#PROGRAM_NAME').textbox({icons:[{
        iconCls:'icon-add',
        handler: iconAddAction 
      }, {
        iconCls:'icon-edit',
        handler: iconEditAction
      }
   ]});
    $('#PROGRAM_NAME').textbox({editable: true});
}        
function iconAddAction(e){
    alert('add');
}
function iconEditAction(e) {
    alert('edit');
}