Client Attribute Prefix

From Documentation
Revision as of 07:40, 30 April 2020 by Jameschu (talk | contribs)


Client Attribute Prefix


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>

Subsections:


Version History

Last Update : 2020/04/30


Version Date Content
9.0.1 April 2010 The client-attribute-prefix namespace was introduced.



Last Update : 2020/04/30

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