Annotate Component Definitions"

From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} In additions to annotating a component or its properties, you could annotate a component definition, such that all its instances will have th…')
 
m
Line 3: Line 3:
 
In additions to annotating a component or its properties, you could annotate a component definition, such that all its instances will have the annotations.
 
In additions to annotating a component or its properties, you could annotate a component definition, such that all its instances will have the annotations.
  
To annotate a component definition, you have to specify the annotations in [[ZK Developer's Reference/Language Definition|a language definition]]. For example, we could extend the definition of bandbox to add annotations.
+
To annotate a component definition, you have to specify the annotations in [[ZK Client-side Reference/Language Definition|a language definition]]. For example, we could extend the definition of bandbox to add annotations.
  
 
<source lang="xml">
 
<source lang="xml">

Revision as of 01:58, 3 December 2010


Annotate Component Definitions


In additions to annotating a component or its properties, you could annotate a component definition, such that all its instances will have the annotations.

To annotate a component definition, you have to specify the annotations in a language definition. For example, we could extend the definition of bandbox to add annotations.

<component>
	<component-name>bandbox</component-name>
	<extends>bandbox</extends>
	<annotation>
		<annotation-name>default-bind</annotation-name>
		<property-name>value</property-name>
		<attribute>
			<attribute-name>access</attribute-name>
			<attribute-value>both</attribute-value>
		</attribute>
		<attribute>
			<attribute-name>save-when</attribute-name>
			<attribute-value>self.onChange</attribute-value>
		</attribute>
	</annotation>
</component>

Version History

Last Update : 2010/12/03


Version Date Content
     



Last Update : 2010/12/03

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