-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
feat: range, add reference point to start range slider at #24348
Comments
Thanks for the issue. Can you provide a code sample of the issue you are running into to help me better understand your use case? |
Thanks! That makes sense. Do you happen to have examples of other applications/libraries that offer this behavior? |
ngx-slider has this option, by setting property 'showSelectionBarFromValue' On their demo page, check the demo for "Slider with visible selection bar from specified value": https://angular-slider.github.io/ngx-slider/demos#selection-bar-from-value-slider |
Thank you! I discussed with the team and we think this would be a good feature to add to Ionic. |
…24348 Added property barActiveStart. bar-active is shown between `barActiveStart` and knob for single knob range-bar. By default `barActiveStart` is set to `min` (Minimum integer value of the range).
Have created a pull request that implements this: #24399 |
Thanks for the issue. This has been resolved via #25598 and the feature will be available in an upcoming release of Ionic. |
Thanks 👍 |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Describe the Feature Request
ion-range shows an active bar which starts from extreme left (0 value) to current knob location.
Very often ion-range needs to have its floor value (or base value) in the center or somewhere else. In these cases, it is required for the active bar to show between the floor value and current knob value, instead of always starting from 0 (extreme left).
Describe the Use Case
A slider to reduce or increase brightness of an image.
Describe Preferred Solution
Adding a 'floor' value attribute for ion-range, and then updating the left/right calculation of active bar to start from 'floor' value to current knob value (instead of always starting from 0 to current knob value)
Describe Alternatives
No response
Related Code
/main/core/src/components/range/range.tsx, line 424
These calculations will need to be updated to start from a floor value (or base value) to current knob value, instead of always starting from 0 (ratioLower is always zero for single knob ion-range).
Additional Information
No response
The text was updated successfully, but these errors were encountered: