How to form a common class of components? e.g. changing the master component will change all its children too

I want to create a common class of components, e.g. one master button component. And then use this to duplicate and create additional buttons to use in the same screen. But instead of changing the properties of each one of them one by one, I want to just change the master component’s properties so that it automatically updates all of its duplicated components as well. Is there any way to do that?

2 Likes

You can clone components including buttons and change the values of those cloned components using dynamic variables.

If you Google any component thunkable you’ll see documentation and video tutorials for using the Any Component blocks.

2 Likes

As @tatiang says, cloning is a good approach. You might also consider looping through the screen component button list and changing properties.

3 Likes

Right, you can do that without actually cloning but it’s good to know about both.

3 Likes