Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

formatTooltip

Karl edited this page Aug 14, 2018 · 1 revision

Type: Function

Default undefined

Define a callback to customise the tooltip content.

The callback has one argument which is the current value(s) of the tooltip(s);

const rangeable = new Rangeable(input, {
    formatTooltip: function(value) {
        return `${value}mm`;
    }
});

Clone this wiki locally