I'm playing with creating a drag and drop feature. I'm trying to create a grid, to drag elements onto, and then carry out some action based on the drop element.
I've created components for dragging and dropping. To create the grid, I want to insert a couple of hundred or so of the droppable components, and give each one a unique number I can use inside the components template.
How should I insert 100 elements and give the unique attribute to each?
Thanks
Aucun commentaire:
Enregistrer un commentaire