Flex advanced datagrid styling

早过忘川 提交于 2019-12-11 13:24:40

问题


I'm using an advanced datagrid in a system I'm building.

the design PSD from the designer includes a special background on rollover.

So, I need the background of the cells in a row to get the background from an image, only when the mouse rolls over a specific row.

is this even possible?

can a row get the background from an image (CSS)


回答1:


There is a method available in DataGrids (and Lists) called drawRowBackgrounds() that is responsible for drawing a simple highlight into a row in response to a user interaction. You might be able to accomplish the design in the PSD programmatically by using the Flash drawing API. If you need to use an image asset, you could try to add it as a child of the Sprite that is passed as the first argument of this method call.



来源:https://stackoverflow.com/questions/2245650/flex-advanced-datagrid-styling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!