Skip to content

mat progress bar. Add the ability to combine different modes #15904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andreElrico opened this issue Apr 25, 2019 · 3 comments
Closed

mat progress bar. Add the ability to combine different modes #15904

andreElrico opened this issue Apr 25, 2019 · 3 comments

Comments

@andreElrico
Copy link

andreElrico commented Apr 25, 2019

Please describe the feature you would like to request.

Add the ability to combine different modes.

What is the use-case or motivation for this proposal?

Lets say your progress is jumpy and goes from 0 to 50 to 100. It would be nice to still have some animations going.

HERE! I hacked my solution by layering two progress bars.

So

1

@Input()
mode: 'determinate' | 'indeterminate' | 'buffer' | 'query'

could be extended with new inputs: 'detIndeterminate' | 'detBuffer' | 'detQuery' or

2

a new @Input() addDetermination could be introduced to combine determination with animation.

3

mode: 'indeterminate' | 'buffer' | 'query' and the occurence of value could yield to the desired behaviour, but could possibly "break/alter" current UX.

Is there anything else we should know?

I would like to know how you like the idea?

@jelbourn
Copy link
Member

This isn't something we plan on adding to the component directly; the app can always stretch out the values it hands to the progress-bar itself.

@andreElrico
Copy link
Author

andreElrico commented Apr 26, 2019

@jelbourn I tried to make something work, but no success yet. Lets say my mode="indeterminate" and my value="50". What do I have to stretch out where? Can't make it work to make a solid progressbar to 50%.
Could you fork my stackblitz?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants