1 Reply Latest reply on Oct 13, 2011 9:09 AM by bucpatr1

    Spark Grid Text Rollover and Selection colors?

    tehxike1 Level 1

      I'm not seeing any styles for this- is it possible to change the text color in a grid during rollover and selection?


      Thanks.

        • 1. Re: Spark Grid Text Rollover and Selection colors?
          bucpatr1 Level 2

          Not sure if there are any styles for that. What you might want to do is create a custom version of the DefaultGridHeaderRenderer class. If you take a look at that class you will notice that it has a 'hovered' state and a labelDisplay property that displays the text. In your custom renderer do something like:

           

          <s:Label id="labelDisplay"

                     color.hovered="0xFF0000"

                      verticalCenter="1" left="0" right="0" top="0" bottom="0"

                      textAlign="start"

                      fontWeight="bold"

                      verticalAlign="middle"

                      maxDisplayedLines="1"

                      showTruncationTip="true" />

           

          Then you would use the custom renderer as the itemrenderer class for you Grid. Hope that helps.