@bind

From Documentation
Revision as of 07:39, 8 February 2012 by Hawk (talk | contribs) (Created page with "{{ZKDevelopersReferencePageHeader}} =Syntax= <tt> @bind(</tt> ''[EL-expression]'' <tt>) </tt> = Description = '''Target Attribute:''' all (except viewModel, validationMessage...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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)"/>



Last Update : 2012/02/08

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