Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Invert Column & Row for a Table

Oliv Mor
10 years ago Mar 02, 2012 1:20pm
Danny Roest
10 years ago Mar 02, 2012 2:05pm
Oliv Mor
10 years ago Mar 09, 2012 10:00am

Danny Roest: You could hide the tableheader, and style the first cell of a row as a header

I'm afraid it won't be enough, I also need to swap column index & row index but don't know which method override to do the trick.

Here is what we have now using a Container:

|-----------|-------------|-------------|-------------|-------------|-------------|
|           | Property 1  | Property 2  | Property 3  | Property 4  | Property 5  |
|-----------|-------------|-------------|-------------|-------------|-------------|
| Object A  | 12.0        | 1.2         | true        | A           | empty       | 
|-----------|-------------|-------------|-------------|-------------|-------------|
| Object B  | 58.3        | 1.0         | true        | B           | full        | 
|-----------|-------------|-------------|-------------|-------------|-------------|

Here is what I'me trying to accomplish:

|---------------|-----------|-----------|
|               | Object A  | Object B  |
|---------------|-----------|-----------|
| property 1    | 12.0      | 58.3      |
|---------------|-----------|-----------|
| property 2    | 1.2       | 1.0       |
|---------------|-----------|-----------|
| property 3    | true      | true      |
|---------------|-----------|-----------|
| property 4    | A         | B         |
|---------------|-----------|-----------|
| property 5    | empty     | full      |
|---------------|-----------|-----------|
Last updated on Mar, 9th 2012
Mamta Bansal
8 years ago Apr 07, 2014 11:39am
Khadem Nitol
6 years ago Nov 18, 2015 1:37pm