Project

General

Profile

WTable and colgroup

Added by Marcelo Antunes 9 months ago

I have a WTable, and defined a HeaderCount as 1 and Wt::Orientation::Horizontal.
With that, the HTML is generated as:

<table>
     <colgroup>
          <col id="someid">
          ...
     </colgroup>
     <thead>
          <tr>
               <th>
                  Some text
               </th>
           </tr>
     </thead>
     <tbody>
     </tbody>
</table>

As you can see, the colgroup is empty.
There is some way to remove it?
That colgroup is interfere with my css/js.


Replies (1)

RE: WTable and colgroup - Added by Matthias Van Ceulebroeck 5 months ago

Hello Marcelo,

I apologize for the very late response, it has been very busy lately.

There currently exists no way to remove colgroup/col, they are used to manage the sizing and style classes of the columns. Removing them from the DOM tree would result in the table functioning differently than before.
I suspect you can change the CSS/JS to simply disregard the col/colgroup?

Best,
Matthias

    (1-1/1)