@bind"
From Documentation
Line 24: | Line 24: | ||
<datebox id="sdbox" value="@bind(vm.selected.shippingDate)"/> | <datebox id="sdbox" value="@bind(vm.selected.shippingDate)"/> | ||
</source> | </source> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | =Version History= | ||
+ | {{LastUpdated}} | ||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | 6.0.0 | ||
+ | | February 2012 | ||
+ | | The MVVM was introduced. | ||
+ | |} | ||
+ | |||
{{ZKDevelopersReferencePageFooter}} | {{ZKDevelopersReferencePageFooter}} |
Revision as of 01:54, 9 February 2012
Syntax
@bind( [EL-expression] )
Description
Target Attribute: all (except viewModel, validationMessages, form)
Purpose: Specify that binder can both save and load data
It's like a shortcut annotation that combines both @save and @load . When your saving and loading don't depend on different condition, it's suggested to use this annotation.
Example
<textbox id="t2" value="@bind(vm.user.account)" />
<doublebox id="pbox" value="@bind(vm.selected.price)"/>
<datebox id="sdbox" value="@bind(vm.selected.shippingDate)"/>
Version History
Version | Date | Content |
---|---|---|
6.0.0 | February 2012 | The MVVM was introduced. |