Getting order Index of element in order List

UI Components for Angular
Post Reply
hamidh2
Posts: 4
Joined: 19 Jul 2021, 15:12

19 Jul 2021, 16:19

I'm using the OrderList for rendering a list of categories.
I want to change the order of each category in that list via drag and drop but it seems there is not way to detect index of each element in that list before and after reordering!!!
by the way is there any way to detect such a thing???

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

19 Jul 2021, 16:49

I believe OrderList is also a UIData so does this answer help: https://stackoverflow.com/a/68390617/502366
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests