Grid Column Clicklistener

I‘m looking for a way to use a ClickListener on a Grid.Column<> component. All I have in that Column component is a Label.

^ I only want it on one specific column, not the full grid

grid.addItemClickListener(e → {
if (e.getColumn().getKey().equals( “column1”)) {
// …

Or add the click listener on the component. You should probably not use a Label but a div or a span, if it’s not a label for a specific input.

How about a button? :sweat_smile: The best component to be clickable

perfect, thanks!

the person who gave me the task didn‘t want that :sweat_smile::sweat_smile:

Do they know a Button doesn’t have to look like a typical button? You can use the Tertiary or even the tertiary-inline variant to make it look pretty much like any piece of text:

sorry thought i wrote taht i found a solution,

this helped :)