如何使用Flex将一个项目从另一个TileList中删除? [英] How to prevent an item being dropped into one TileList from another using Flex?

查看:142
本文介绍了如何使用Flex将一个项目从另一个TileList中删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想阻止用户将某些项目从一个TileList拖到另一个。是否可以将其删除到TileList中,应该根据与该项目相关联的数据来确定。

I would like to prevent a user dragging certain items from one TileList to another. Whether or not they can be dropped into the TileList should be determined based on data associated with the item.

要显示该项目无法拖动到TileList中,我想在光标旁边的红色圆圈图标中显示正常的白色十字。如果确定下降不应该发生,则尝试显示一个提示消息,解释为什么这个项目不能被删除。

To show that the item cannot be dragged into the TileList I would like to show the normal white cross in red circle icon next to the cursor. If a drop is attempted when it has been determined that drop should not occur I would like to show an alert message explaining why this item could not be dropped.

推荐答案

这篇文章应该帮助你。文章中的例子似乎正是你想要的。

This article should help you. The example in the article seems exactly what you want.

http://butterfliesandbugs.wordpress.com/2007/10/10/cancelling-a-drag-action-in-list-components/

这篇关于如何使用Flex将一个项目从另一个TileList中删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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