Open ceremcem opened 6 years ago
This is a draft for recursive component usage:
Boxes might contain some other boxes recursively:
boxes: [ {width: 1, height: 2, boxes:[ {width: 44, height: 55}, {width: 66, height: 77, boxes: [ {width: 88, height:99} ]} ]}, {width: 3, height: 5} ]
We can simply display these boxes by using "Partials": Playground link
If we want to display an area property for each box, we may simply use data functions: Playground link
To set height of the boxes by their "virtual" area property, we may use components: Playground link
area
So TL;DR:
Yes? If not, I'm not seeing the reason or goal.
Exactly, 2-way data flow is the main requirement here.
Two goals here:
This is a draft for recursive component usage:
Example: Recursive Boxes
Boxes might contain some other boxes recursively:
We can simply display these boxes by using "Partials": Playground link
If we want to display an area property for each box, we may simply use data functions: Playground link
To set height of the boxes by their "virtual" area property, we may use components: Playground link
Changes
area
component