cal-heatmap icon indicating copy to clipboard operation
cal-heatmap copied to clipboard

added a callback when showing tooltips to customize contents

Open timkock opened this issue 9 years ago • 3 comments

Added functionality to allow for an option to provide custom tooltip contents based on item data as such

cal.init({
    tooltip: true,
    onTooltip: function(date, nb) {
        return $filter('currency')(nb || 0, '€ ', 2);
    }
});

This example pertains to an integration with angular where the tooltip displays currency formatted data.

timkock avatar Sep 16 '15 15:09 timkock

Can you only leave the changes in src/cal-heatmap.js ? Other files will be built automatically on new version release

wa0x6e avatar Mar 18 '16 10:03 wa0x6e

Is there any update to this pull request? I would really appreciate this feature.

oxisto avatar May 23 '16 19:05 oxisto

@wa0x6e, @oxisto will fix this today, lets see if new pull request gets accepted because it was submitted September 16 2015 and commented on March 2016...

timkock avatar May 25 '16 06:05 timkock

Merged into v4 branch

wa0x6e avatar Nov 06 '22 16:11 wa0x6e