Skip to content

Commit 1d340ba

Browse files
committed
Merge pull request #10 from MarcKaufmann/master
Add #:wrap to radio-group (was added in input-group)
2 parents 8c1ea03 + d55961f commit 1d340ba

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

web-server-lib/web-server/formlets/input.rkt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
#:kind kind
131131
#:attributes [attrs (λ (x) empty)]
132132
#:checked? [checked? (λ (x) #f)]
133-
#:display [display (λ (x) x)]
133+
#:display [display (λ (x) x)]
134134
#:wrap [wrap (λ (x y) (list x y))])
135135
(define value->element (make-hasheq))
136136
(define i 0)
@@ -174,12 +174,14 @@
174174
(define (radio-group l
175175
#:attributes [attrs (λ (x) empty)]
176176
#:checked? [checked? (λ (x) #f)]
177-
#:display [display (λ (x) x)])
177+
#:display [display (λ (x) x)]
178+
#:wrap [wrap (λ (x y) (list x y))])
178179
(input-group l
179180
#:kind "radio"
180181
#:attributes attrs
181182
#:checked? checked?
182-
#:display display))
183+
#:display display
184+
#:wrap wrap))
183185

184186
(define (checkbox-group l
185187
#:attributes [attrs (λ (x) empty)]
@@ -354,7 +356,8 @@
354356
(#:attributes
355357
(-> any/c (listof (list/c symbol? string?)))
356358
#:checked? (any/c . -> . boolean?)
357-
#:display (any/c . -> . pretty-xexpr/c))
359+
#:display (any/c . -> . pretty-xexpr/c)
360+
#:wrap (any/c any/c . -> . pretty-xexpr/c))
358361
. ->* .
359362
(formlet/c any/c))]
360363
[checkbox-group ((sequence?)

0 commit comments

Comments
 (0)