Skip to content

Commit 7c20447

Browse files
tojoqkjeapostrophe
authored andcommitted
Update documentation for checkbox-group
1 parent e000698 commit 7c20447

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

web-server-doc/web-server/scribblings/formlets.scrbl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,17 @@ element of the sequence.
381381
@defproc[(checkbox-group [l sequence?]
382382
[#:attributes attrs (any/c . -> . (listof (list/c symbol? string?))) (λ (x) empty)]
383383
[#:checked? checked? (any/c . -> . boolean?) (λ (x) #f)]
384-
[#:display display (any/c . -> . xexpr/c) (λ (x) x)])
384+
[#:display display (any/c . -> . xexpr/c) (λ (x) x)]
385+
[#:wrap wrap (any/c any/c . -> . xexpr/c) (λ (x y) (list x y))])
385386
(formlet/c (listof any/c))]{
386387

387388
This @tech{formlet} renders using a sequence of INPUT elements of
388389
CHECKBOX type where each element gets its attributes from
389390
@racket[attrs] that share a single NAME. An element is checked if
390-
@racket[checked?] returns @racket[#t]. Elements are followed by the
391-
results of @racket[display]. The result of processing this formlet is
392-
a list of elements of the sequence.
391+
@racket[checked?] returns @racket[#t]. Elements are combined with the
392+
results of @racket[display] into an X-expression specified in
393+
@racket[wrap]. The result of processing this formlet is a list of
394+
elements of the sequence.
393395
}
394396

395397
@defproc[(submit [value (or/c bytes? string?)]

0 commit comments

Comments
 (0)