Search code examples
javascriptextjscolorsextjs4extjs4.1

Change color of currently selected field


How do I change the color of the currently selected record in extjs combobox? As you can see the image below, the record Petty Cash Fund is the currently selected item on my dropdown but the highlight color is not noticeable. How do I change this for all the combobox in my application?

enter image description here


Solution

  • The selected element in a combobox has the css class x-boundlist-selected. Just override its color in your custom css.

    Or, since it is a built-in style, you could change $boundlist-item-selected-background-color in the template

    Tip: Use Chrome Developper Tools