Directory

← Back

ClickableTextRenderer

Clickable text in Grids (v7)

Author

Rating

Popularity

<100

A Renderer for Grid which makes a cell value clickable and look like a link. This is in particular useful for drill-down scenario.

See GitHub for more documentation and usage examples.

If you want the equivalent renderer for Grids in Vaadin v8 then have a look here: https://vaadin.com/directory/component/clickabletextrenderer-v8.

Future development will happen on the v8 renderer only. Expect this v7 renderer to be in care & maintenance mode .. meaning you shouldn't expect bug fixes here, but on the v8 sibling.

Sample code

// Create a listener which defines what to do when 
// link is clicked
ClickableRenderer.RendererClickListener myListener
        = (ClickableRenderer.RendererClickEvent event) -> {
            // Do something here. Use event.getItemId() to figure out
            // which row was clicked.
        };

// Add the renderer to some column 
// (column is expected to have a PRESENTATION type of String)
grid.getColumn("city").setRenderer(new ClickableTextRenderer(myListener));

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Downgraded to work with Java 7 too.

Released
2017-03-12
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.4+ in 1.0.2
Browser
N/A

ClickableTextRenderer - Vaadin Add-on Directory

Clickable text in Grids (v7) ClickableTextRenderer - Vaadin Add-on Directory
A Renderer for Grid which makes a cell value clickable and look like a link. This is in particular useful for **drill-down** scenario. See GitHub for more documentation and usage examples. If you want the equivalent renderer for Grids in Vaadin v8 then have a look here: https://vaadin.com/directory/component/clickabletextrenderer-v8. Future development will happen on the v8 renderer only. Expect this v7 renderer to be in care & maintenance mode .. meaning you shouldn't expect bug fixes here, but on the v8 sibling.
Issue Tracker
Equivalent rendenderer for Vaadin v8
Source Code
Discussion Forum

ClickableTextRenderer version 0.9.1
null

ClickableTextRenderer version 0.9.2
null

ClickableTextRenderer version 1.0.1
Minor usability changes. Maturity is now "stable".

ClickableTextRenderer version 1.0.2
When the advanced renderer is used the column being rendered can now be sorted.

ClickableTextRenderer version 1.0.3
Downgraded to work with Java 7 too.

Online