Feature #1063

WTableView with header in column

Added by Jan Hrubeš 6 months ago. Updated 6 months ago.

Status:Closed Start:11/16/2011
Priority:Normal Due date:
Assigned to:Koen Deforche % Done:

0%

Category:-
Target version:3.2.0

Description

Hi,
I missing the option the use WTableView with header in column. It is not essential, but it would expand widgets usability (I have only a few measurements, but many options to display).

By the way, I found another typo in documentation - switched meaning in setColumnSpan and setRowSpan.

Wt::WTableCell::setColumnSpan
  A column span greater than 1 indicates that table cells --BELOW-- this one are overspanned.

Wt::WTableCell::setRowSpan
  A row span greater than 1 indicates that table cells to the --RIGHT-- of this one are overspanned.

regards,
Jan

History

Updated by Koen Deforche 6 months ago

Hey Jan,

I guess you mean a header for each row ?
Does setRowHeaderCount() not help you ?

http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WAbstractItemView.html#adf338c1002ce189de836de6f5d445cc4

Thanks for the typo. I've corrected this.

Regards,
koen

Updated by Jan Hrubeš 6 months ago

Hi Koen,
thanks for your fast reply.
Method setRowHeaderCount() isn't exactly what I meant, but is sufficient for my needs.

Original I was thinking about something like transposition, to have (with polished style) blue cells with sorting buttons in the first column.

regards,
Jan

Updated by Koen Deforche 6 months ago

  • Status changed from New to Resolved
  • Assigned to set to Koen Deforche

Hey Jan,

I see what you mean (although, sorting, really ?). You can play with the style and contents using the style class role, and perhaps a custom item delegate, in a do-it-yourself fashion.

Regards,
koen

Updated by Koen Deforche 6 months ago

  • Status changed from Resolved to Closed
  • Target version set to 3.2.0

Also available in: Atom PDF