riganti / dotvvm

Open source MVVM framework for Web Apps
https://www.dotvvm.com
Apache License 2.0
753 stars 97 forks source link

Button animations and interactivity #396

Open tomasherceg opened 7 years ago

tomasherceg commented 7 years ago

We have heard some complaints about the following scenario: "I need to run an animation on a button while a postback is running".

There are a several ways how to do this in DotVVM:

To simplify the syntax, there are also several options:

However, I agree that neither of the methods is simple.

I can imagine several solutions:

djanosik commented 7 years ago

We should prefer simple solution that will not require users to write their own JavaScript. I think it's good enough to prepare some decorator or active property.

exyi commented 7 years ago

I think that we should have

@tomasherceg What do you think?

tomasherceg commented 6 years ago

We should have a discussion about the right solution - I like PostBack.IsBusyCssClass for simple scenarios and full postback handler for all other scenarios.