How to get the new order in OrderList

UI Components for Angular
Post Reply
mpprime
Posts: 4
Joined: 10 Apr 2016, 17:47

14 May 2021, 12:05

Hello!

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>
and this is the reorder method:

Code: Select all

    reorder(ev) {
        console.log(ev);
    }
but how can I get the information I need?

fes
Posts: 3
Joined: 22 Mar 2013, 12:10

15 May 2021, 13:34

<p-orderList id="reason" value="ordering" appendTo="@(this)">
</p-orderList>

Regards
kunal
http://ipowala.in

mpprime
Posts: 4
Joined: 10 Apr 2016, 17:47

11 Jun 2021, 15:16

fes wrote:
15 May 2021, 13:34
<p-orderList id="reason" value="ordering" appendTo="@(this)">
</p-orderList>

Regards
kunal
http://ipowala.in
Hello!
thanks for the reply, but i don't understand.
I would need to take the new order, so that I can then pass the new order to the database.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests