Jelly Toggle: Animated Toggle Button

How where is block

Will this toogle if yes may be I wish u could change checked property to toogle because checked refers to check box on my mind

1 Like

Toggle means to switch from one state like on to of checked means the value of the button is positive.

What it means
still u din't say how it can be done with blocks

jellyToggle1.setChecked(!isChecked);

Use the logic, currently I cannot open app inventor.

So what result I get u mean it will switch any side to right if set true and left if set false

Sorry, cannot understand you're logic.

Leave my logic what result I get on my mobile if

To true and what result I get when false

Cannot understand what are you saying.

Sample application if you are having trouble with blocks.

toogle.aia (129.4 KB)

@KUMARASWAMY_B.G Nice extension, but in addition to animation, the ability to set the size of the switch would be useful. Not necessarily width and height separately because it could distort the shape. We could only set the width, the height would be proportional.

4 Likes

Man, I really wish they had this added. I oftentimes use it for things like setting a timer to time you and put this option at the bottom of the screen, it would be great if I could edit the width and height to be smaller than the actual size. But Ty @Kumaraswamy for the animation. Makes my app look even cooler and slick.

There has been a Switch component for some time.....
image

3 Likes

Hm yes, the recommended size is 5% Height and 15% Width

1 Like

Change JellyToggle.checked to JellyToggle.on like it is for normal switch.

1 Like

Nice Extension @Kumaraswamy :star_struck:, How much time will you take to make one extension- Just for knowing :grin: :face_with_monocle:

1 Like

I took like 30 - 40 mins just. Because adding the library was just like 5 mins, removing unnecessary things. And I just followed the documentation. This is my first extension something related to UI type.

2 Likes

#off-topic
Oh, I was making an extension and it is taking 2 weeks to complete :smile: :grin:

6 Likes

So if it is possible to pull the settings out, it could be done.

All in all right. Checked is more like a checkbox.

2 Likes

Hello Sir, please don't go off topic, this topic is about an extensions show case not how long does it take to make extensions.

4 Likes

@TIMAI2 I wish they had a custom width/height property for this component. Most of the time it isn't as small as i would like it to be.

1 Like