A

From Documentation

A

  • Demonstration: N/A
  • Java API: A
  • JavaScript API: A
  • Style Guide: A

Employment/Purpose

The same as HTML A tag.


Example

ZKComRef A Examples.PNG

<a href="http://www.zkoss.org" label="Visit ZK!"/>

In addition, you could add child components to A too:

<a href="http://www.zkoss.org" label="Visit ZK!" image="zk.png">
  <grid>
    <rows>
      <row>What ever content</row>
    </rows>
  </grid>
</a>

Notice that a child component might also handle the mouse click, so the final result of clicking on a child component is really up to which child component is used.

The href attribute can be an URI. For example,

<a href="/foo" label="Foo" />
<a href="goo" label="Goo" />

If the URI starts with "/", ZK will encode it with the application's context path. Otherwise the path is relative to the path given by Desktop.getDirectory().

Supported Events

Name
Event Type
None None

Supported Children

*ALL

Use Cases

Version Description Example Location
     

Version History

Last Update : 2011/07/29


Version Date Content
5.0.5 October, 2010 A supports any children.



Last Update : 2011/07/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.