I'd like to set a mouse listener to my Label so that I can change the cursor to a HAND_CURSOR when the user places their mouse over a label.
<g:Label text="Overview" styleName="left_menu_title" ui:field="lb_overview"/>
I tried to set style css "cursor: hand;" for this Label, but when run, all attribute cursor were replaced.
Do you have any suggestion?
cursor: pointer !important;
to force your CSS style if something else is overwriting it.point
orhand
defined in the CSS standard. The correct term to use ispointer
, as Chris showed in his answer. You can see a list of valid CSS cursor values here: w3schools.com/cssref/pr_class_cursor.asp