@bind"

From Documentation
m ((via JWB))
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
 +
{{Deprecated | url=[http://books.zkoss.org/zk-mvvm-book/8.0/syntax/bind.html zk-mvvm-book/8.0/syntax/data_binding/bind]|}}
  
  
 
=Syntax=
 
=Syntax=
  
<tt> @bind(</tt> ''[EL-expression]'' <tt>) </tt>
+
<code>@bind(</code> ''[EL-expression]'' <code>)</code>
  
 
= Description =
 
= Description =
Line 11: Line 12:
 
'''Purpose:''' Specify that binder can both save and load data
 
'''Purpose:''' Specify that binder can both save and load data
  
It's like a shortcut annotation that combines both <tt> @save </tt> and <tt> @load </tt>. When your saving and loading don't depend on different condition, it's suggested to use this annotation.
+
It's like a shortcut annotation that combines both <code>@save</code> and <code>@load</code>. When your saving and loading don't depend on different condition, it's suggested to use this annotation.
  
  
Line 29: Line 30:
  
 
=Version History=
 
=Version History=
{{LastUpdated}}
+
 
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-

Latest revision as of 07:35, 8 July 2022

Stop.png This article is out of date, please refer to zk-mvvm-book/8.0/syntax/data_binding/bind for more up to date information.


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.




Last Update : 2022/07/08

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