CKString shows the result of binding as string.
Required attribute: value
Attribute | Type | Description |
---|---|---|
value |
String |
Text to be displayed. |
escape |
true/false |
Escapes HTML control characters in value if the escape is true. The default value is true. |
empty |
String |
Text that is substituted for value when the value is nil. |
CKHyperlink generates a hypertext link.
Required attributes: action
, href
or page
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 action or page attribute. |
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 query attribute is converted to string. Then, the string is added to append the URL. |
Creates an image tag.
Required attributes: file
, src
, or data
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 file attribute. |
data |
CKByteData |
A CKByteData object to display as image. If you create the object without resource manager, You must use this with mime attribute. |
mime |
String |
MIME type for a resource of data attribute. |