Your IP : 18.224.38.176
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Generate a sequence of checkbox elements, as a String.
- !ruby/struct:SM::Flow::P
body: The checkboxes will all have the same <tt>name</tt> attribute. Each checkbox is followed by a label. There will be one checkbox for each value. Each value can be specified as a String, which will be used both as the value of the VALUE attribute and as the label for that checkbox. A single-element array has the same effect.
- !ruby/struct:SM::Flow::P
body: Each value can also be specified as a three-element array. The first element is the VALUE attribute; the second is the label; and the third is a boolean specifying whether this checkbox is CHECKED.
- !ruby/struct:SM::Flow::P
body: Each value can also be specified as a two-element array, by omitting either the value element (defaults to the same as the label), or the boolean checked element (defaults to false).
- !ruby/struct:SM::Flow::VERB
body: " checkbox_group("name", "foo", "bar", "baz")\n # <INPUT TYPE="checkbox" NAME="name" VALUE="foo">foo\n # <INPUT TYPE="checkbox" NAME="name" VALUE="bar">bar\n # <INPUT TYPE="checkbox" NAME="name" VALUE="baz">baz\n\n checkbox_group("name", ["foo"], ["bar", true], "baz")\n # <INPUT TYPE="checkbox" NAME="name" VALUE="foo">foo\n # <INPUT TYPE="checkbox" CHECKED NAME="name" VALUE="bar">bar\n # <INPUT TYPE="checkbox" NAME="name" VALUE="baz">baz\n\n checkbox_group("name", ["1", "Foo"], ["2", "Bar", true], "Baz")\n # <INPUT TYPE="checkbox" NAME="name" VALUE="1">Foo\n # <INPUT TYPE="checkbox" CHECKED NAME="name" VALUE="2">Bar\n # <INPUT TYPE="checkbox" NAME="name" VALUE="Baz">Baz\n\n checkbox_group("NAME" => "name",\n "VALUES" => ["foo", "bar", "baz"])\n\n checkbox_group("NAME" => "name",\n "VALUES" => [["foo"], ["bar", true], "baz"])\n\n checkbox_group("NAME" => "name",\n "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"])\n"
full_name: CGI::HtmlExtension#checkbox_group
is_singleton: false
name: checkbox_group
params: (name = "", *values)
visibility: public