EasyUI Forum
May 20, 2024, 05:05:16 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: Size of checkbox in editable datagrid  (Read 4697 times)
cormac
Newbie
*
Posts: 1


View Profile
« on: February 12, 2014, 02:01:24 PM »

I have an editable datagrid which works pretty well. However, I want to change the size of the checkbox that is the 'editor' for one of my fields and can't see how I can do this..    I would appreciate any help that the forum can give...

my code looks like this ....


I am createing the columns in javascript and here is the checkbox field in question....   as you can see I tried setting the width and height in the column definition to 40 each but this had no effect.

{field:'Done', title:'Did it',width:50,align:'center',
                        editor:{
                            type:'checkbox',
                            height : 40,
                            width:40,
                            options:{
                                on: 'Y',
                                off: 'N'
                            }
                        }
                    }





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


View Profile Email
« Reply #1 on: February 12, 2014, 07:43:19 PM »

Please try to add css style definition to the page.
Code:
<style>
.datagrid-editable input[type="checkbox"]{
width:40px;
height:40px;
}
</style>
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!