Results 1 to 3 of 3

Thread: Possible to setStyle for a:hover?

  1. #1
    Ext User
    Join Date
    Feb 2009
    Location
    Calgary, Canada
    Posts
    28
    Vote Rating
    0
      0  

    Default Possible to setStyle for a:hover?

    Hey everyone,

    Easy question but Google and searching the forums has come up with nothing.

    What is the easiest way to set a style for a link's :hover? Easiest to just set the hover via JS, or is there a way to use setStyle or applyStyles?

  2. #2
    Sencha User walldorff's Avatar
    Join Date
    Mar 2008
    Location
    Antwerp, Belgium
    Posts
    165
    Vote Rating
    2
      0  

    Default

    Quote Originally Posted by travisbell View Post
    Easy question but Google and searching the forums has come up with nothing
    title search on setStyle in this forum: 11 hits.
    Happy reading
    ExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8

  3. #3
    Ext User
    Join Date
    Feb 2009
    Location
    Calgary, Canada
    Posts
    28
    Vote Rating
    0
      0  

    Default

    FYI, if anyone comes into this thinking the same way I did, what would be better than adding styles is to add/removeClass. That way, things like a:hover are preserved as part of the class you're setting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •