vue-range-slider icon indicating copy to clipboard operation
vue-range-slider copied to clipboard

Possible to format tooltips as Date strings?

Open PatrickVHessman opened this issue 4 years ago • 1 comments

My project is using Date objects as the max and min values. The slider is working, but the tooltips just display the date number. As far as I'm aware, the formatter property can only handle basic string formatting (like adding currency signs). is it possible to format these values as a date? See screenshot. Annotation 2020-12-29 143206

PatrickVHessman avatar Dec 29 '20 20:12 PatrickVHessman

You could just convert unix to date in the label ?

use the formatter prop and do something like : moment.unix(val).format('DD-MM HH:mm')

riksnelders avatar Feb 23 '21 12:02 riksnelders