Name

ulink

Synopsis

LZX: ulink
JavaScript: ulink
Type: Class
Access: public
Topic: Incubator.Components
Declared in: lps/components/incubator/ulink.lzx

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.
      <ulink href="http://openlaszlo.org">OpenLaszlo.org</ulink>
    
See ulink-test.lzx for additional examples.

Superclass Chain

node (LzNode) » view (LzView) » ulink

Known Subclasses

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;
The URL target.
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" />
public var text : html;
The text of the link.

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 hoverColor  : color;
  public var hoverTags  : String;
  public var href  : String;
  public var target  : String;
  public var text  : html;
  prototype public function makeTags (tags);
}