We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bind progress button observable

Thread ID:

Created:

Updated:

Platform:

Replies:

148845 Nov 6,2019 10:25 AM UTC Nov 7,2019 04:57 PM UTC Angular - EJ 2 1
loading
Tags: ProgressButton
James
Asked On November 6, 2019 10:25 AM UTC

How do I bind the progress button to an observable to start the animation when a boolean is true and end the animation when it is false.?

Your current documentation does not show how to start or stop the animation. I would think this is a primary use case when waiting for an API to return. 

Please update your documentation with example on starting and stopping the animation programatically.  

Madhan Venkateshan [Syncfusion]
Replied On November 7, 2019 04:57 PM UTC

Hi James, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked your query. We would like to suggest you to use progress event to end the animation of the progress button using progressComplete method when the boolean changed to true. Please refer the below sample link. 
 
 
App.component.ts 
progress(args: ProgressEventArgs) { 
    if(this.isCompleted) { 
      this.progressObj.progressComplete(); 
      this.isCompleted = false; 
    } 
  } 
 
 
Sorry for the inconvenience caused. We will update the documentation in our upcoming release. 
 
Regards, 
Madhan V 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon