vydimitrov/react-countdown-circle-timer

need use multiple countdown

amirsamani opened this issue · 4 comments

hi,
i use a countdown in each row of a table
I want to delete that row when the each count down timer complete
please help me.

Hey, you can hook to the onComplete method and add your logic to delete the row

thanks is there any way to access parent tr of completed countdowntimer in onComplete method?

This depends of your implantation. Usually you pass a prop, which is a method/function from the parent to the children. Then in the onComplete you call the prop/method and the parent takes it from there.

Let me know if you need any additional help on this one.