Description
A class for URL links.
This differs from the use of the XHTML <a> attribute, e.g in '<text><a href="http://openlaszlo.org">OpenLaszlo.org</a>lt;/text>',
in these ways:
- There is a hover effect. (This defaults to underline.)
- There is a hover color. (This defaults to blue.)
- The link content and target can be databound.
See ulink-test.lzx for additional examples.
Details
Properties (6)
-
color
-
<attribute name="color" type="color" value="blue" />
public var color : color;
The color when the link is
not being hovered.
-
hoverColor
-
<attribute name="hoverColor" type="color" value="blue" />
public var hoverColor : color;
The color when the link is hovered.
-
hoverTags
-
<attribute name="hoverTags" type="string" value="u" />
public var hoverTags : String;
A list of tags that are applied to the link when
it is hovered. This is either a list of tag names, e.g. "u"
or "u b", or the HTML itself, e.g. "<u>".
-
href
-
<attribute name="href" type="string" />
public var href : String;
-
target
-
<attribute name="target" type="string" value="_new" />
public var target : String;
Where the target opens. See LzBrowser.loadURL for
a list of values.
-
text
-
<attribute name="text" type="html" />
Methods (1)
-
makeTags()
-
<method name="makeTags" args="tags" />
public function makeTags(tags);
LZX Synopsis
<class name="
ulink" extends="
LzView
">
<attribute name="
color
" type="
color" value="
blue" />
<attribute name="
hoverColor
" type="
color" value="
blue" />
<attribute name="
hoverTags
" type="
string" value="
u" />
<attribute name="
href
" type="
string" />
<attribute name="
target
" type="
string" value="
_new" />
<attribute name="
text
" type="
html" />
<method name="
makeTags
" args="
tags" />
</class>
JavaScript Synopsis
public
ulink extends
LzView
{
public var
color
:
color;
public var
href
:
String;
prototype public function
makeTags
(
tags);
}