I would need to take the new order in an OrderList, in order to pass order and images to the database.
this is the list:
Code: Select all
<p-orderList [value]="immaginiArticolo" [listStyle]="{'max-height':'30rem'}" [dragdrop]="true"
(onReorder)="reorder($event)" header="Immagini articolo">
<ng-template let-img pTemplate="item">
<div class="product-item">
<div class="image-container">
<img src="https://www.website.it/large/{{img.img_nome}}"
[alt]="img.img_nome" class="product-image">
</div>
</div>
</ng-template>
</p-orderList>
Code: Select all
reorder(ev) {
console.log(ev);
}