PDA

View Full Version : Hyperlink widget and disabling



raymond.larsen
31 Jul 2009, 11:24 AM
How do I go about disabling a hyperlink widget. It does not have the disable function link a button does. I saw some discussion for those using JS, but none for gxt.

What CSS class(es) control the various states of a hyperlink?

Arno.Nyhm
6 Aug 2009, 1:22 AM
i think you can not disable a link with css - but you can hide it.


or replace it on disabling with a normal text (without a link)

or just disable the function if you do add on html basis a onClick="javascript: return false;" (but then the user can anyway use the right click and "open in new tab/window" functionality.