加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flex拖放

发布时间:2020-12-15 04:15:57 所属栏目:百科 来源:网络整理
导读:?xml version="1.0" encoding="utf-8"?s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"s:layouts:HorizontalLayout paddi
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
	<s:layout>
		<s:HorizontalLayout paddingLeft="20" paddingTop="20"/>
	</s:layout>
	<fx:Declarations>
		<s:ArrayCollection id="authors">
			<fx:Object label="A" telephone="1"/>
			<fx:Object label="B" telephone="2"/>
			<fx:Object label="C" telephone="3"/>
			<fx:Object label="D" telephone="4"/>
			<fx:Object label="E" telephone="5"/>
		</s:ArrayCollection>
	</fx:Declarations>
	<mx:DataGrid dataProvider="{authors}" dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" allowMultipleSelection="true">
		<mx:columns>
			<mx:DataGridColumn headerText="Label" dataField="label"/>
			<mx:DataGridColumn headerText="Telephone" dataField="telephone"/>
		</mx:columns>
	</mx:DataGrid>
	<s:VGroup>
		<s:Label fontWeight="bold" text="source"/>
		<s:List dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" allowMultipleSelection="true" dataProvider="{authors}"/>
	</s:VGroup>
	<s:VGroup>
		<s:Label fontWeight="bold" text="Target"/>
		<s:List dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" allowMultipleSelection="true" dataProvider="{new ArrayCollection()}"/>
	</s:VGroup>
</s:Application>

dragEnabled="true"?

dropEnabled="true"?

dragMoveEnabled="true"?

allowMultipleSelection="true"

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读