gwt-material icon indicating copy to clipboard operation
gwt-material copied to clipboard

Allow MaterialAnimation to accept a CSS name or a Transition object instead of just a Transition object

Open timmattison opened this issue 4 years ago • 3 comments
trafficstars

I would like to use the MaterialAnimation class to handle some custom animations but MaterialAnimation depends on the Transition enum. Since enums cannot be extended I can't find a way to get my animation's CSS name in there without modifying GWT Material itself. Is there another way?

If not, I'll try to submit a PR for it.

timmattison avatar Jul 02 '21 02:07 timmattison

For now we dont support a css name, sure you can submit a pull request then we can review.

On Fri, Jul 2, 2021, 10:23 AM Tim Mattison, @.***> wrote:

I would like to use the MaterialAnimation class to handle some custom animations but MaterialAnimation depends on the Transition enum. Since enums cannot be extended I can't find a way to get my animation's CSS name in there without modifying GWT Material itself. Is there another way?

If not, I'll try to submit a PR for it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GwtMaterialDesign/gwt-material/issues/1009, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAX6EFZZJSYCZDYDFTXLKUDTVUPLDANCNFSM47V2IFJA .

kevzlou7979 avatar Jul 02 '21 04:07 kevzlou7979

Sorry, I gave it a shot with no luck. I'll try again today but it's a bit more involved than I thought.

timmattison avatar Jul 06 '21 13:07 timmattison

It's inheriting the new module I created that's giving me a problem. If you can point me to any guidance on a good way to set this library so I can develop with it on my own and get the XML inherits and Maven setup right please let me know and I'll keep trying.

timmattison avatar Jul 06 '21 13:07 timmattison