Client Attribute Prefix"
From Documentation
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
<source lang="xml"> | <source lang="xml"> | ||
<zk xmlns:v-on="client/attribute-prefix"> | <zk xmlns:v-on="client/attribute-prefix"> | ||
− | <button v-on:click="doSth">Do Something</button> | + | <button v-on:click="doSth">Do Something</button> |
</zk> | </zk> | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=Version History= | =Version History= |
Latest 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. |