A
From Documentation
A
Employment/Purpose
The same as HTML A tag.
Example
<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
None | None |
- Inherited Supported Events: LabelImageElement
Supported Children
*ALL
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|
5.0.5 | October, 2010 | A supports any children. |