Ahtasham ul Haq
Ahtasham ul Haq

Reputation: 1

Swap position of div / component with each other in blazor

I am unable to change the position of two div elements with each other. I have multiple input files on a single page and I need to change their positions on click.

Upvotes: 0

Views: 348

Answers (1)

Peter Morris
Peter Morris

Reputation: 23234

Have the items in a list and render a div for each item using a foreach. Make sure you use @key on the div to identify it

Upvotes: 1

Related Questions