@ref"
From Documentation
m (→Description) |
m (→Description) |
||
Line 16: | Line 16: | ||
'''Purpose:''' Create a reference to an EL expression that can be used in another EL expression. | '''Purpose:''' Create a reference to an EL expression that can be used in another EL expression. | ||
− | Create this binding on a component's custom attribute whose name can be referred and used in another EL expression. The EL expression that refers to the reference must be the children of the component that contains the reference binding. This feature is useful in shortening EL expressions by referring it | + | Create this binding on a component's custom attribute whose name can be referred and used in another EL expression. The EL expression that refers to the reference must be the children of the component that contains the reference binding. This feature is useful in shortening EL expressions by referring it in another expression. |
= Example = | = Example = |
Revision as of 03:53, 12 March 2012
Since 6.0.1
Syntax
@ref( [EL-expression] )
Description
Target Attribute: custom attribute.
Purpose: Create a reference to an EL expression that can be used in another EL expression.
Create this binding on a component's custom attribute whose name can be referred and used in another EL expression. The EL expression that refers to the reference must be the children of the component that contains the reference binding. This feature is useful in shortening EL expressions by referring it in another expression.
Example
<div p="@ref(vm.selectedPerson)"/>
<label value="@load(p.id)" />
<label value="@load(p.name)" />
</div>
Version History
Version | Date | Content |
---|---|---|
6.0.1 | May 2012 | The new reference-binding feature. |