EasyUI Forum
May 23, 2024, 05:07:48 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: Subgrid buttons  (Read 4800 times)
nprioleau
Newbie
*
Posts: 12


View Profile
« 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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 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;
    }
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!