use"
From Documentation
Maya001122 (talk | contribs) (Created page with '== The use Attribute == use="''a-class-name''" use="${EL_returns_a_class_or_a_class_name}" use="${a_component}" (since 3.6.0) It specifies a class to create a component inste…') |
m (correct highlight (via JWB)) |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{ZUMLReferencePageHeader}} | |
+ | |||
+ | '''Syntax:''' | ||
use="''a-class-name''" | use="''a-class-name''" | ||
− | use="${EL_returns_a_class_or_a_class_name}" | + | use="${''EL_returns_a_class_or_a_class_name''}" |
− | use="${a_component}" | + | use="${''a_component''}" |
− | It specifies a class to create a component instead of the default one. In the following example, < | + | It specifies a class to create a component instead of the default one. In the following example, <code>MyWindow</code> is used instead of the default class, <javadoc type="interface">org.zkoss.zul.Window</javadoc>. |
<source lang="xml" > | <source lang="xml" > | ||
− | + | <window use="MyWindow"/> | |
</source> | </source> | ||
If an EL expression is used, it can return a class name, a class instance, or a component instance. | If an EL expression is used, it can return a class name, a class instance, or a component instance. | ||
− | Notice that, if the expression returns a component, the component | + | Notice that, if the expression returns a component, the component should not belong to any pages. |
+ | |||
+ | =Version History= | ||
+ | |||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | {{ZUMLReferencePageFooter}} |
Latest revision as of 13:27, 19 January 2022
Syntax:
use="a-class-name" use="${EL_returns_a_class_or_a_class_name}" use="${a_component}"
It specifies a class to create a component instead of the default one. In the following example, MyWindow
is used instead of the default class, Window.
<window use="MyWindow"/>
If an EL expression is used, it can return a class name, a class instance, or a component instance. Notice that, if the expression returns a component, the component should not belong to any pages.
Version History
Version | Date | Content |
---|---|---|