Skip to content
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

Material Slider using input-event value #2110

Closed
WastedFreeTime opened this issue Feb 20, 2020 · 1 comment · Fixed by #2873
Closed

Material Slider using input-event value #2110

WastedFreeTime opened this issue Feb 20, 2020 · 1 comment · Fixed by #2873

Comments

@WastedFreeTime
Copy link

Hello Community,
I want to sync the material slider value smooth with a number input field while dragging the slider but to do something like this i need the current slider value(while sliding).
Currently the model value gets only updated after releasing the slider.
Is this the wanted behavior?

In Material i would use the input event for this.
<mat-slider (input)="onInputChange($event)">

Can you please add a way to access the slider input event value or update the model based on input to get the value while sliding.
What you think?

@aitboudad
Copy link
Member

Hi, I'll check it later (when time allows 😄) but for now, I'd suggest creating your own slider type here is the Formly slider source code: https://github.com/ngx-formly/ngx-formly/tree/v5/src/material/slider/src

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants