How to add html code to the table column header in Eclipse RAP

192 views Asked by At

I'm trying to add a div to the table column header, but this does not affected.

TableColumn column = table.getColumn(columnIndex);
column.setData(RWT.MARKUP_ENABLED, Boolean.TRUE);
column.setAlignment(SWT.CENTER);
column.setWidth(COLUMN_WIDTH);
column.setResizable(Boolean.FALSE);
column.setText("<div></div>");
1

There are 1 answers

0
RĂ¼diger Herrmann On BEST ANSWER

Markup can only be applied to TableItems. Table columns currently don't support markup.

If you think you have a valid use case, you may want to open an enhancement request here: https://eclipse.org/rap/bugs/