Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Use formatter callback function for replace " , " to " . " #52

Open
shaddam opened this issue Jul 1, 2017 · 2 comments
Open

Use formatter callback function for replace " , " to " . " #52

shaddam opened this issue Jul 1, 2017 · 2 comments

Comments

@shaddam
Copy link

shaddam commented Jul 1, 2017

Example:

jQuery('.counter').counterUp({
delay: 50,
time: 3000,
formatter: function (n) {
return n.replace(/,/g, '.');
}
});

@senzlord
Copy link

senzlord commented Sep 7, 2017

what about if i use data-plugin="counterup" ?

@dnunes
Copy link

dnunes commented Jun 7, 2018

That's a great idea and a very simple one to implement. Do you have any coding skills? Are you willing to send a Pull Request implementing this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants