Expand the Toggle Component block

Hi,

At the moment the only option that can be changed with the Toggle Component block is visibility which is hardcoded. Would it be possible to make this an option block and include more characteristics of the component?

So, for example,

Text, Text Colour, Font Size, Font, Background Colour, Height, Width

As you may guess, I am coming from the Thunkable world where this is used and makes it very easy to change characteristics dynamically.

Thanks
Steve

Hello Steve,

Thank you, we appreciate your suggestions, but to avoid misunderstandings and better understand your idea, it would be very helpful if you could provide a screenshot of such a component or a link to a page where it is used.

Regards,
Zahar

Hi,

This is what I was thinking about -

2024-11-06 10 16 321

I think that this would allow a lot more flexibility when working with components and the ability to change characteristics dynamically.

Steve

Thanks for the additional information, but I meant that maybe you’ve already seen such a component implemented somewhere. It would be nice if we could see it and be able to “touch” it.

Regards,
Zahar

Sure. These blocks are from Thunkable.

1 Like

Hi @Steve

Actually, it’s already possible.
All these properties on the screenshot above are component style-related and in the UI Builder there is a codeless block “Style of … component” which returns a reference to the component styles and you can get/set any using regular “Get Property of” and “Set property to” codeless blocks.
Although we do not have a predefined list of properties, there might be a thousand items, it allows you to set any CSS property

Regards,
Vlad

Hi,

Ok thanks. Will have a look.

Steve