Forget my question… I figured it out :-) Thanks.
Joe
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joe Hudson
Sent: Wednesday, March 28, 2007 2:58 PM
To: 'qooxdoo Development'
Subject: [qooxdoo-devel] drag and drop with lists
Are there any good examples showing how to drag and drop with lists?
I’m trying to figure out how to move items around in a list using drag and
drop and am having some trouble. Can anybody help me with this? Thank you
very much.
What I have so far (which is not working) is below:
testList = new qx.ui.form.List("test");
testList.set({ top: 10, bottom: 10, left: 10, width: 200, overflow :
"scrollY" });
testList.setDropDataTypes(["test/listItem"]);
testList.getManager().setMultiSelection(false);
d.add(testList);
li1 = new qx.ui.form.ListItem(“item 1”);
li1.addEventListener("dragover", function (e) {
e.getTarget().setStyleProperty("border-bottom", "solid 2px
#cccccc");
});
li1.addEventListener("dragout", function (e) {
e.getTarget().setStyleProperty("border-bottom", "0px");
});
li1.setDropDataTypes(["test/listItem"]);
testList.add(li1);
li2 = new qx.ui.form.ListItem(“item 2”);
li2.addEventListener("dragover", function (e) {
e.getTarget().setStyleProperty("border-bottom", "solid 2px
#cccccc");
});
li2.addEventListener("dragout", function (e) {
e.getTarget().setStyleProperty("border-bottom", "0px");
});
li2.setDropDataTypes(["test/listItem"]);
testList.add(li2);
li3 = new qx.ui.form.ListItem(“item 3”);
li3.addEventListener("dragover", function (e) {
e.getTarget().setStyleProperty("border-bottom", "solid 2px
#cccccc");
});
li3.addEventListener("dragout", function (e) {
e.getTarget().setStyleProperty("border-bottom", "0px");
});
li3.setDropDataTypes(["test/listItem"]);
testList.add(li3);
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 3/27/2007
4:38 PM
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 3/27/2007
4:38 PM
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 3/27/2007
4:38 PM
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel