How to change control's background color on focus and on blur?

  1. #1

    How to change control's background color on focus and on blur?

    How to change the background color of a control when it gets focus and when it looses focus?
  2. #2
    Hi,

    There are the Focus and Blur events, you could handle them.

    To manage CSS rules on the fly you can use the Component addClass, removeClass methods.
    http://docs.sencha.com/ext-js/3-4/#!...ethod-addClass
    http://docs.sencha.com/ext-js/3-4/#!...od-removeClass

Similar Threads

  1. [CLOSED] Change background color of Toolbar
    By trieu.tran in forum 1.x Premium Help
    Replies: 1
    Last Post: Jun 06, 2012, 11:56 AM
  2. Replies: 2
    Last Post: Dec 29, 2011, 3:11 AM
  3. [CLOSED] How to change color of FlashComponent background
    By flormariafr in forum 1.x Premium Help
    Replies: 6
    Last Post: Mar 01, 2010, 12:50 PM
  4. Replies: 12
    Last Post: Jun 17, 2009, 1:07 PM
  5. Change Tab background color or background image
    By georgelanes in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2008, 4:55 PM

Tags for this Thread

Posting Permissions