EasyUI Forum

General Category => General Discussion => Topic started by: thiago_brum on July 27, 2016, 07:34:55 PM



Title: Img tag or text next to the checkbox column title
Post by: thiago_brum 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?


Title: Re: Img tag or text next to the checkbox column title
Post by: jarry 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>