A"

From Documentation
Line 34: Line 34:
  
 
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.
 
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,
 +
 +
<source lang="xml">
 +
<a href="/foo" label="Foo" />
 +
<a href="goo" label="Goo" />
 +
</source>
 +
 +
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=
 
=Supported Events=

Revision as of 04:04, 23 November 2010

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 additions, 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 : 2010/11/23


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



Last Update : 2010/11/23

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