writing small example with select
This commit is contained in:
parent
ad85814dbd
commit
995f093baa
14
examples/select.rkt
Normal file
14
examples/select.rkt
Normal 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))
|
Loading…
Reference in New Issue
Block a user