D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
CGI
/
HtmlExtension
/
Filename :
radio_button-i.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Generates a radio-button Input element. - !ruby/struct:SM::Flow::P body: <tt>name</tt> is the name of the input field. <tt>value</tt> is the value of the field if checked. <tt>checked</tt> specifies whether the field starts off checked. - !ruby/struct:SM::Flow::P body: Alternatively, the attributes can be specified as a hash. - !ruby/struct:SM::Flow::VERB body: " radio_button("name", "value")\n # <INPUT TYPE="radio" NAME="name" VALUE="value">\n\n radio_button("name", "value", true)\n # <INPUT TYPE="radio" NAME="name" VALUE="value" CHECKED>\n\n radio_button("NAME" => "name", "VALUE" => "value", "ID" => "foo")\n # <INPUT TYPE="radio" NAME="name" VALUE="value" ID="foo">\n" full_name: CGI::HtmlExtension#radio_button is_singleton: false name: radio_button params: (name = "", value = nil, checked = nil) visibility: public