label-template"

From Documentation
m
 
Line 7: Line 7:
 
  </label-template>
 
  </label-template>
  
It specifies how to instantiate a label. When [[ZUML Reference/ZUML/Texts|the text]] found in a ZUML document, ZK Loader will first check if the so-called [[ZK Client-side Reference/Language Definition/component|text-as]] property is defined. If so, the setter is called to pass the text to the component. If not, this label template is used to instantiate a label for holding the text.
+
It specifies how to instantiate a label. When [[ZUML Reference/ZUML/Texts|the text]] is found in a ZUML document, ZK Loader will first check if the so-called [[ZK Client-side Reference/Language Definition/component|text-as]] property is defined. If so, the setter is called to pass the text to the component. If not, this label template is used to instantiate a label for holding the text.
  
 
Example,
 
Example,

Latest revision as of 09:16, 23 August 2011


Syntax:

<label-template>
  <component-name>a_component_name</component-name>
  <component-attribute>a_property</component-attribute>
</label-template>

It specifies how to instantiate a label. When the text is found in a ZUML document, ZK Loader will first check if the so-called text-as property is defined. If so, the setter is called to pass the text to the component. If not, this label template is used to instantiate a label for holding the text.

Example,

<label-template>
	<component-name>label</component-name>
	<component-attribute>value</component-attribute>
</label-template>

component-name

[Required]

The name of the component definition that represents a label.

component-attribute

[Required]

The property of the component definition for holding the text.

Version History

Last Update : 2011/08/23


Version Date Content
     



Last Update : 2011/08/23

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