eclipse / nebula

Nebula Project
https://eclipse.org/nebula
Eclipse Public License 2.0
84 stars 97 forks source link

Add support to the slider to format the value #574

Closed laeubi closed 4 months ago

laeubi commented 4 months ago

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

lcaron commented 4 months ago

Good job, thank you Christoph for this PR