Client Attribute Prefix"
From Documentation
(Created page with "{{ZUMLReferencePageHeader}} Name: client attribute Namespace: http://www.zkoss.org/2005/zk/client/attribute Namespace shortcut: client/attribute Java: <javadoc method="CLIEN...") |
|||
Line 1: | Line 1: | ||
{{ZUMLReferencePageHeader}} | {{ZUMLReferencePageHeader}} | ||
− | Name: client attribute | + | Name: client attribute prefix |
− | Namespace: http://www.zkoss.org/ | + | Namespace: http://www.zkoss.org/2020/zk/client/attribute-prefix |
− | Namespace shortcut: client/attribute | + | Namespace shortcut: client/attribute-prefix |
− | Java: <javadoc method=" | + | Java: <javadoc method="CLIENT_ATTRIBUTE_PREFIX_NAMESPACE">org.zkoss.zk.ui.metainfo.LanguageDefinition</javadoc> |
− | It is the reserved namespace for specifying client-side DOM attributes. Unlike the client namespace, which assigns something to widgets, the client/attribute namespace assigns additional DOM attributes to the DOM tree directly at the client. | + | It is the reserved namespace for specifying client-side DOM attributes including the prefix. Unlike the client namespace, which assigns something to widgets, the client/attribute namespace assigns additional DOM attributes to the DOM tree directly at the client. |
− | + | For example, suppose you want to specify <code>v-on:click</code> as a DOM attribute, you can do as follows. | |
− | |||
− | |||
− | |||
− | |||
− | For example, suppose you want to | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="xml"> | <source lang="xml"> | ||
− | < | + | <zk xmlns:v-on="client/attribute-prefix"> |
− | + | <button v-on:click="doSth">Do Something</button> | |
− | + | </zk> | |
− | |||
− | </ | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<blockquote> | <blockquote> | ||
Line 87: | Line 27: | ||
! Version !! Date !! Content | ! Version !! Date !! Content | ||
|- | |- | ||
− | | | + | | 9.0.1 |
− | | | + | | April 2010 |
− | | The client-attribute namespace was introduced. | + | | The client-attribute-prefix namespace was introduced. |
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
{{ZUMLReferencePageFooter}} | {{ZUMLReferencePageFooter}} |
Revision as of 07:40, 30 April 2020
Name: client attribute prefix Namespace: http://www.zkoss.org/2020/zk/client/attribute-prefix Namespace shortcut: client/attribute-prefix Java: LanguageDefinition.CLIENT_ATTRIBUTE_PREFIX_NAMESPACE
It is the reserved namespace for specifying client-side DOM attributes including the prefix. Unlike the client namespace, which assigns something to widgets, the client/attribute namespace assigns additional DOM attributes to the DOM tree directly at the client.
For example, suppose you want to specify v-on:click
as a DOM attribute, you can do as follows.
<zk xmlns:v-on="client/attribute-prefix">
<button v-on:click="doSth">Do Something</button>
</zk>
Version History
Version | Date | Content |
---|---|---|
9.0.1 | April 2010 | The client-attribute-prefix namespace was introduced. |