writing small example with select

This commit is contained in:
Danny Yoo 2012-05-14 15:16:07 -04:00
parent ad85814dbd
commit 995f093baa

14
examples/select.rkt Normal file
View File

@ -0,0 +1,14 @@
#lang planet dyoo/whalesong
(require (planet dyoo/whalesong/web-world))
(define view (xexp->view '(select (@ (id "my-select"))
(option (@ (value "red")) "Red")
(option (@ (value "green")) "Green")
(option (@ (value "blue")) "Blue"))))
(big-bang 'undefined
(initial-view view))