A"
From Documentation
Line 21: | Line 21: | ||
</source> | </source> | ||
− | In | + | In addition, you could add child components to <javadoc>org.zkoss.zul.A</javadoc> too: |
<source lang="xml"> | <source lang="xml"> |
Revision as of 03:22, 29 July 2011
A
Employment/Purpose
The same as HTML A tag.
Example
<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
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. |