Hello everybody, I left the platform for a long time since it was too slow on my pc, but now I don’t know if they fixed it or is it cause I switched to linux, but it’s working better, so I’m back but I still see that something that i need to automatize my app is missing, the possibility to use the actual name of the component i created.
I mean: I have many buttons that basically do the same thing, but every button changes certain variables, like, if i press the margherita, the price goes to 1, if i press another pizza it goes to 1.2 etc, to fully automate it letting me use the clone function in the proper way i need to ‘access’ the component name when it is cloned, or just when i use the any button block.
There is still a feature in development that will solve this particular problem, but unfortunately it’s not out yet. I’m guessing it’s 4-6 weeks out, but schedules frequently change, so it might take longer…
We’ll create a way for you to add a new property to every button - which should allow you to distinguish between your components and consolidate your code. We’ll have more info when it gets released.
maybe this discussion on github helps you? It is about how to add an index to a cloned component. That way, you can click on “pizza”-button or “margherita”-button, get the index and assign an appropriate price: