Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run a function when the counter, stopwatch or timer is played #34

Open
dlcastillop opened this issue Mar 6, 2024 · 1 comment
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@dlcastillop
Copy link
Owner

No description provided.

@dlcastillop dlcastillop added enhancement New feature or request good first issue Good for newcomers labels Mar 6, 2024
@dlcastillop
Copy link
Owner Author

Examples

const counter = useCountDown(0, 10, {
    startPaused: false,
    onFinish: () => console.log("Counter ended"),
    onPlay: () => console.log("Counter paused"),
});
const counter = useCountUp(0, 10, {
    startPaused: false,
    onFinish: () => console.log("Counter ended"),
    onPlay: () => console.log("Counter paused"),
});
const counter = useStopwatch({
    endTime: "00:00:00:10",
    startPaused: false,
    onFinish: () => console.log("Counter ended"),
    onPlay: () => console.log("Stopwatch paused"),
});
const counter = useTimer("00:00:00:10", {
    startPaused: false,
    onFinish: () => console.log("Counter ended"),
    onPlay: () => console.log("Timer paused"),
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant