Hi, I'd like to make a composite Header for CellTable.
My requirements are:- * Multiple rows * ColSpan in one of the multiple rows * Multiple Clickable elements in each TH's TD Naively my plan was to generate the required HTML in the Header's render method and hook up clickHandlers to some of the elements; however (obviously) the render method only returns HTML which is used by CellTable to populate the inner HTML of elements already created (namely the TH and TD elements). Furthermore to provide the multi-row\colspan requirements I planned on using the same Header for all columns (so CellTable spans all columns) and generate HTML for a nested table - with multiple rows\colspan etc. Provided the nested table's column widths match those of the CellTable and I override CSS to remove padding and margins it gives the required effect. I also found that click events do not get raised when the Header contains HTML for another table. So, some questions:- * Does anybody have advice on implementing composite headers? * Can you attach Handlers to HTML elements created in a render method? * How can I get Click Events to pass through to a nested HTML table? * Would I be better off writing my own Widget rather than use CellTable? Thanks for reading this far. Mike -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
