Hello! Friends, asking for help, did not get to implement his plan.
Here is a simple example:
Initially the blocks are not. There is a button which when pressed creates a block
in this block there is another button that, when clicked, create child blocks
How to count elements with
in each block
, for example, by their numbering.
For example the blocks
are created dynamically and would like them to assign a sequence number. I understand that you need to act on the indication of the object
, but I can't figure this out :(
At the moment, it counts the number of all elements:
Thank you for your attention and help!