Powered by SmartDoc

General elements

CKString

CKString shows the result of binding as string.

Required attribute: value

Attributes of CKString
Attribute Type Description
value String Text to be displayed.
escape true/false Escapes HTML control characters in valueif the escapeis true. The default value is true.
empty String Text that is substituted for valuewhen the valueis nil.

CKHyperlink

CKHyperlink generates a hypertext link.

Required attributes: action, hrefor page

Attributes of CKHyperlink
Attribute Type Description
action CKComponent Method to be invoked when the link is clicked.
enabled true/false Generates a non-active link if the value is true.
href String You specify the URL to other web page directly. This attribute prevails over actionor pageattribute.
page String Name of component to display when the link is clicked.
string String Text of the link. If the body of CKHyperlink tag is not empty, the body is displayed. For example, if the template includes <cgikit name=link>foo</cgikit>, this element shows "foo" as the link.
target String target attribute of HTML's <a>tag.
secure true/false Appends "https://" to the URL if the value is true. The default value is false.
query Hash Hash as the query string. The value of queryattribute is converted to string. Then, the string is added to append the URL.

CKImage

Creates an image tag.

Required attributes: file, src, or data

Attributes of CKImage
Attribute Type Description
alt String Alternative text to the picture.
border Integer Size of image border.
width Integer Width of image.
height Integer Height of image.
file String Name of an image file in web server resource directory.
src String You specify an image file directly. This value prevails over fileattribute.
data CKByteData A CKByteData object to display as image. If you create the object without resource manager, You must use this with mimeattribute.
mime String MIME type for a resource of dataattribute.