EasyUI Forum
November 01, 2025, 12:42:12 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: Img tag or text next to the checkbox column title  (Read 9525 times)
thiago_brum
Newbie
*
Posts: 26


View Profile Email
« on: July 27, 2016, 07:34:55 PM »

I set a column of my DataGrid to checkbox type (data-options="checkbox:true"). The title of the column turned into a checkbox. How can I set a img tag or text next to the checkbox column title?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: July 28, 2016, 03:39:14 AM »

Please try this:
Code:
<style type="text/css">
.datagrid-header-check,.datagrid-cell-check{
width: 50px;
font-size: 12px;
}
</style>
<script type="text/javascript">
$(function(){
$('#dg').datagrid({...}).datagrid('getPanel').find('.datagrid-header-check').append('text');
});
</script>
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!