CKGenericElement

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

Description

CKGenericElement generates generic HTML tags.

Bindings

Required attributes: tag

tag:Name of the HTML tag. If the attribute is nil, body enclosed by the element or "string" attribute are displayed.
enabled:Enables or disables the tag. If the attribute is false, body enclosed by the element or "string" attribute are displayed.
string:String to display if body enclosed by the element isn’t exist.
option:String to append for the open tag. For example, "checked" or "selected".
form_value:If the element is form, the attribute is setted form datas as a string.
form_values:If the element is form, the attribute is setted form datas as an array.
invoke_action:If the element is executable ( hyperlink, button, etc. ), the method is called when clicked.

You can define other voluntary attributes. The attributes is appended to the tag in format as "attribute=value".

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()