From d07c91bf275874a5f6f13af5f338def78eea7ae0 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 8 Sep 2009 10:18:19 -0400 Subject: dragList almost kinda works --- demo/more/dragList.ur | 33 +++++++++++++++++++++++++++++++++ demo/more/dragList.urp | 4 ++++ demo/more/dragList.urs | 1 + 3 files changed, 38 insertions(+) create mode 100644 demo/more/dragList.ur create mode 100644 demo/more/dragList.urp create mode 100644 demo/more/dragList.urs (limited to 'demo/more') diff --git a/demo/more/dragList.ur b/demo/more/dragList.ur new file mode 100644 index 00000000..ddb50e82 --- /dev/null +++ b/demo/more/dragList.ur @@ -0,0 +1,33 @@ +fun draggableList title items = + itemSources <- List.mapM source items; + draggingItem <- source None; + return +

Great {[title]}

+ +
+ +fun main () = + bears <- draggableList "Bears" ("Pooh" :: "Paddington" :: "Rupert" :: "Edward" :: []); + beers <- draggableList "Beers" ("Budvar" :: "Delirium Tremens" :: "Deuchars" :: []); + boars <- draggableList "Boars" ("Sus scrofa scrofa" + :: "Sus scrofa ussuricus" + :: "Sus scrofa cristatus" + :: "Sus scrofa taiwanus" :: []); + return + {bears} + {beers} + {boars} + diff --git a/demo/more/dragList.urp b/demo/more/dragList.urp new file mode 100644 index 00000000..56fb9cce --- /dev/null +++ b/demo/more/dragList.urp @@ -0,0 +1,4 @@ +debug + +$/list +dragList diff --git a/demo/more/dragList.urs b/demo/more/dragList.urs new file mode 100644 index 00000000..6ac44e0b --- /dev/null +++ b/demo/more/dragList.urs @@ -0,0 +1 @@ +val main : unit -> transaction page -- cgit v1.2.3