CKCheckbox

Class/Module:
Class
In:
lib/cgikit.rb
Parent:
CKElement

Description

Creates a checkbox. This element must be used within CKForm or HTML form.

Bindings

Required attributes: selection and value, or checked

You use this element in two ways. One it the way to use "checked" attribute. The other is the way to use both "selection" and "value" attributes.

checked:If neither "value" nor "selection" attribute is nil and the value of "selection" is equal to that of "value", the check box is checked.
value:When the check box is checked, the value of "value" attribute is set to the component by the method specified by "selection" attribute.
selection:Object that the user chose from the check box.
enabled:If the value is false, the element appears but is not active.

Programming Topics

Methods

bind_request
own_attributes
run
to_s

Included modules

ElementAttribute

Public Class Methods

bind_request( component, definition, value, id )
own_attributes()

Public Instance Methods

run()
to_s()