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

Add support to the slider to format the value #574

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Mar 15, 2024

Currently the slider always show the raw number, but often this is not very suitable for the user e.g. if the Number represents a unit of measure or should be formated with a number format.

This adds a new method NebulaSlider#setLabelFormatProvider that allows to customize the formatting of the raw number.

This then maybe looks like this:
grafik

Currently the slider always show the raw number, but often this is not
very suitable  for the user e.g. if the Number represents a unit of
measure or should be formated with a number format.

This adds a new method NebulaSlider#setLabelFormatProvider that allows
to customize the formating of the raw number.
@lcaron lcaron merged commit 27bfb29 into eclipse:master Mar 15, 2024
2 checks passed
@lcaron
Copy link
Contributor

lcaron commented Mar 15, 2024

Good job, thank you Christoph for this PR

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

Successfully merging this pull request may close these issues.

2 participants