CKHyperlink

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

Description

CKHyperlink generates a hypertext link.

Bindings

Required attributes: action, href or page.

action:Method to be invoked when the link is clicked.
enabled:Generates a non-active link if the value is false.
href:You specify the URL to other web page directly. This attribute prevails over "action" or "page" attribute.
page:Name of component to display when the link is clicked.
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:target attribute of HTML’s <a> tag.
secure:Appends "https://" to the URL if the value is true. The default value is false.
query:Hash as the query string. The value of "query" attribute is converted to string. Then, the string is added to append the URL.

Programming Topics

Methods

own_attributes
run
to_s

Included modules

ElementAttribute

Public Class Methods

own_attributes()

Public Instance Methods

run()
to_s()