EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: nprioleau on March 17, 2016, 06:13:51 AM



Title: Subgrid buttons
Post by: nprioleau on March 17, 2016, 06:13:51 AM
I am trying to create buttons for my subgrid but am failing to get the button to show the correct icons.

 formatter:function(value,row,index)
    {
   var s = '<button class="easyui-linkbutton" iconCls="icon-edit" onclick="editBomDetail(this)"></button> ';
        return s;
    }

Is it possible?


Title: Re: Subgrid buttons
Post by: jarry on March 17, 2016, 08:09:52 AM
If you just want to display an icon on the row, don't need to use the linkbutton, just apply some CSS styles on the <button>.
Code:
formatter:function(value,row,index)
    {
   var s = '<button class="icon-edit" onclick="editBomDetail(this)" style="width:16px;height:16px;border:0"></button> ';
        return s;
    }