EasyUI Forum
April 23, 2024, 05:05:44 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: Column Group and cell formatter combination  (Read 2858 times)
sky-t
Full Member
***
Posts: 145


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


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

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!