I have several oh-slider-items with min and max defined.
This creates a slider widget with (I think) always 4 middle equi-distanced value marks.
These are often showing non-integer values.
Can I adapt the number of or display representation of the marks’ values so I can get rid of commas?
Can I inject marks of my own?
Think of a slider to define EV charge power.
It would for example need to have marks at 3.7, 11 and 22 kW (in Germany).
Not with any oh-slider properties. The f7-library automatically calculates the marks based on the scaleSteps value, but that will always be an even distribution. Unevenly distributed marks are not possible. Also, the f7 property for formatting (or modifying) the mark labels is set in the oh-slider vue file so the user can’t over-ride that.
There are some convoluted css hacks that you can use to suppress the default values and then insert your own using a stylesheet and even modify the distribution, but it is not pretty and at that point just finding a more appropriate component (radio buttons? dropdown input?) would be less hassle.