PDA

View Full Version : set background color for legendItem



vselvaraj
11 Sep 2013, 11:38 AM
I am new to ExtJS and trying to achieve like the attached image - coloring the background of the legend item on mouse hover. I have attached sample image for better understanding.
45760

I am trying to achieve this on LegendItem ->mouse over event. I able to achieve the same for the whole legend , but not sure for legendItem.
me.legend.boxFill='red';
me.legend.boxStrokeWidth=2;

Any help would be appreciated.

Gary Schlosberg
13 Sep 2013, 11:54 AM
Not sure if this is possible, but if so, to get the first item:


me.legend.items[0].boxFill='red';
me.legend.items[0].boxStrokeWidth=2;