mirror of
https://github.com/esiur/iui.git
synced 2025-05-06 14:52:58 +00:00
1.2 KiB
1.2 KiB
Data flow
When the :data attribute is set to an element any other attribute and child will be able to access this field directly using the variable data or the shortended d.
It is a scope variable responsible for the rerendering process of the view when the value provided implements Modifiable interface, such as the Esiur distributed objects.
My name is ${d.name} and I work as a ${d.job}.
Child element will be provided with the data of its parent
- Width: ${d.width}
- Height: ${d.height}
Child element can set its data with :data attribute
- Width: ${d.width}
- Height: ${d.height}
- Ratio: ${d}
Every element in the tree will have a data property
Click me