ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

ActivityIndicator.processing as a number #1432

Open kryptus36 opened 4 years ago

kryptus36 commented 4 years ago

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

8.1.2

6.3.0

6.5.1

android 6.2.0

My request is simply to consider making the processing property of ActivityIndicator a number instead of a boolean. This makes much more sense in the context of asynchronous loading. For each job you can increment by 1. As they finish you decrement by 1. Any positive number activates it. 0 turns it off. A negative number should never happen, perhaps it could throw an exception.

Under the current setup if you have a couple calls where one takes a bit longer, the property is set to false when the first one completes, potentially leading to a confusing UX.