Flex的先进数据网格样式 [英] Flex advanced datagrid styling

查看:246
本文介绍了Flex的先进数据网格样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的系统,我建立一个先进的数据网格。

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

从设计师设计PSD包括上侧翻一个特殊的背景。

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.

这甚至可能吗?

可以连续获得的图像(CSS)的背景

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

推荐答案

有一个在DataGrid中(和解释)可用一个方法叫做drawRowBackgrounds(),该负责绘制一个简单突出到一行响应于用户交互。您可能能够通过编程方式使用Flash绘图API来完成的PSD设计。如果您需要使用图像资源,你可以尝试将其添加为传递作为这个方法调用的第一个参数的Sprite的子项。

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.

这篇关于Flex的先进数据网格样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆