EDIT: Version 1.2 is currently under testing. Try it out here:
[Free]The ExtraComponents Extension (Beta)
Hello everybody It’s time for a fresh extension. .
There was a huge discussion about the integration of Toggle buttons onto the Thunkable platform a few days ago (see here). Until now, there has been no easy way to add off-palette components to your app without fidgeting with canvases, arrangements and whatnot. All this struggle for something developers on other platforms take for granted.
In order to bridge this gap between Thunkable and the more sophisticated IDEs out there, I have created an extension which adds the functionality of components that are missing in the designer palette. It currently supports only the Toggle button, but feel free to suggest more components here.
Here are the currently available methods:
This method is used to create the toggle button on the screen.
x and y coordinates are specified in pixels (please suggest a better measure because I don’t know much about dp, px, sp and the likes).
thumbColour is the colour of the draggable circle specified in hex format.
trackColour is the colour of the rounded rectangle which carries the thumb, also specified as hex.
id is a unique integer to identify a specific toggle button. Never create two toggle buttons with the same id. By using an id for a toggle button, you can create multiple buttons without having to drag the extension onto the screen multiple times.
This method allows you to change the colours of the toggle button during runtime.
With this method, you can programmatically toggle a specific button.
Programmatically enable/disable toggle buttons using this method. It is advised to use this in conjunction with the
ChangeColour method as the disabled buttons do not automatically gray out.
This event is invoked whenever a toggle button is pressed. It returns if the toggle is switched on (boolean) and the id of the toggle button (int).
ExtraComponents Extension by Vishwas Adiga is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.
(Thanks @taifun for the Tools extension. The tinted Status bar sure adds an awesome touch to the previews)
AIX file: (deprecated) com.vishwas.ExtraComponents.aix (30.3 KB)
Hope you find it useful. Please post bugs and other nasty encounters with bots here. I will try my best to fix them.