Tom
Tom

Reputation: 845

In Gwt, how to make the little hand pop up when using ClickHandler for Label

Say, I don't like to use Anchor or Hyperlink, but prefer to use Clickable Label. But After add ClickHandler for Label, & when I mouse over, there no little hand popup as we often see when using HyperLink or Anchor. So,


how to make the little hand pop up when using ClickHandler for Label?

Upvotes: 2

Views: 476

Answers (1)

Suresh Atta
Suresh Atta

Reputation: 122018

you can acheive that in two ways:

With Gwt alone

           lable.getElement().getStyle().setCursor(Cursor.POINTER);         

and by adding css style to the lable(preffered)

lable.addStyleName(mylableStyle);


.mylableStyle {
   cursor: pointer;
}

Upvotes: 5

Related Questions