Hi, I wanted to add some other functionality like showing the number of task cards present in each stage dynamically after changing thier positions. Can you help me with easiest way to do that?
I loved the way you explained.
Nikhil
Yup, I did it, but i don't think it's optimal, evrytime we shift a task from one to another, I'm counting number of child elements in that div, i don't think it's optimal solution. Please, suggest if there is any other way.
Nikhil
I wrote a function for counting child elements inside a div and displays the count value in html.
I think there is a property in js to find number of child nodes for a particular node.
Everytime we drag a card from one div and drop in another div , while the drop event occurs that function get's triggered.
This is how i've done that.
I forgot to add those files in github nikhil 🤦. I lost those files 😐.