ebanx / swipe-button

A button that activates by swipe instead of touch
487 stars 101 forks source link

How to swipe programmatically? #27

Open mohitkrdhiman opened 6 years ago

mohitkrdhiman commented 6 years ago

I want to swipe it on button click, isthere any method???

leandroBorgesFerreira commented 6 years ago

Hi @mohitkrdhiman. You could use toggleState(). Does it solve your problem?

paragyogi commented 6 years ago

Is it possible to change initial_state programatically

paragyogi commented 6 years ago

Sorry toggle State helped me . I was required to move to original stage after swiping by user SO I used toggle state two time. Am I correct?

idee24 commented 5 years ago

toggleState(); dynamically swipes the button. But the button is unusable after this event. Seems like the button is suddenly disabled.