Rendering a grid cell as an hyperlink
2 posts
• Page 1 of 1
Rendering a grid cell as an hyperlink
Hi,
Is there any standard way or rendering de cells of a particular column on a grid as Hyperlinks? Usually we see cell editors being set to change the way a cell is rendered but we see no editor to do this.
Regards,
nobrega
Is there any standard way or rendering de cells of a particular column on a grid as Hyperlinks? Usually we see cell editors being set to change the way a cell is rendered but we see no editor to do this.
Regards,
nobrega
- nobrega
- Posts: 19
- Joined: Tue Feb 11, 2020 6:40 pm
Re: Rendering a grid cell as an hyperlink
We don't have a specific Hyperlink renderer. This has different reasons. But anyway, it's super easy to solve.
We usually configure cell renderers to show links (underlined font) in Desktop environment, or we use an additional cell image and handle click events on the table... This is user-friendly and we didn't have any problems with this solution.
In web environment (vaadin UI), we set styles, e.g.
And a stylesheet:
The .c-statement_short is the column style. With this simple mechanism it's super easy to show a hyperlink in web environment.
We usually configure cell renderers to show links (underlined font) in Desktop environment, or we use an additional cell image and handle click events on the table... This is user-friendly and we didn't have any problems with this solution.
In web environment (vaadin UI), we set styles, e.g.
Style.addStyleNames(table, "dashtable", "topduration");
table.eventMouseClicked().addListener(this, "doShowStatementDetails");
table.eventMouseClicked().addListener(this, "doShowStatementDetails");
And a stylesheet:
.jvx .dashtable.topduration .c-statement_short .v-table-cell-wrapper:hover
{
text-decoration: underline;
color: #346b84 !important;
cursor: pointer;
}
{
text-decoration: underline;
color: #346b84 !important;
cursor: pointer;
}
The .c-statement_short is the column style. With this simple mechanism it's super easy to show a hyperlink in web environment.
-
Support@SIB - Posts: 355
- Joined: Mon Sep 28, 2009 1:56 pm
2 posts
• Page 1 of 1