Prop

<< Click to Display Table of Contents >>

Navigation:  IWML > Data Binding > Tags >

Prop

Usage

 

=prop.<prop name>:<format>

 

Prop can be used to bind to page properties. The binding is two way. Since page properties are also pushed to matching properties in code behind, =this.name and =prop.name are identical when code behind exists. In some cases because of typing, the datatype may change however between =this.name and =prop.name. This is most often in the case of boolean as booleans in page properties are treated as strings but in code behind may be strings or boolean.

 

_ Prefix

 

Any property names that being with _ (underscore) will be ignored. _ is a commonly used prefix in JavaScript to denote private properties as JavaScript has no general concept of visibility.

 

Example

 

ACORN 1.0 IWML 1.0

TestsProperties.Index

 Properties

   MyNumber: 22

   TestString: Hello

   TestStringList:

     One

     Two

     Three

   ]

 ]

 Cells[]

   SimpleStack[]

     Text Properties Test

     Text =Prop.MyNumber

     Text =Prop.TestString

     EditMulti =Prop.TestStringList

   ]

 ]

]