CKTextField

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

Description

Creates a text input field. This element must be used within CKForm or HTML form.

Bindings

Required attribute: value

value:Value of the text field. If you set an accessor method to this element, the form data is set to a component automatically by the method.
type:Type of the text field. "text" is for a normal text input field, "password" is for a password field and "hidden" is for a hidden field.
size:Size of the text field.
maxlength:Max length of data for the text field.
validate:Format string to validate input value.
pass:If validating is passed, the value is true.
enabled:If the value is true, 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()