EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on October 20, 2017, 08:26:43 AM



Title: Column Group and cell formatter combination
Post by: sky-t on October 20, 2017, 08:26:43 AM
Hi there,

i have seen to get column groups i have to write them in <table><thead>

i also need some functions like formatter: function()...


How can i combine this?


Thank you very much


Title: Re: Column Group and cell formatter combination
Post by: jarry on October 21, 2017, 06:42:32 AM
You can assign an 'id' attribute for the column group cell and then modify its content by this 'id'.
Code:
<th colspan="4"><span id="cg1">Item Details</span></th>
<script>
...
$('#cg1').html(...);  // modify the content
...
</script>