Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Is it possible to give the output of serialize or toArray back to the ui-sortable component and have it reorder at runtime? #537

@digitalpowers

Description

@digitalpowers

I saved my sorted list of objects (to a database but probably not important) by using toArray but now I want to restore the order when I come back to the page later. However while I can get the array out of the database when the controller starts I cant figure out how to reorder the list.

Note: the list provided by the controller is made of complex objects not just a list of id's. They load from a rest interface. What I would love is to be able to provide the preferred order back to the ui-sortable but if any objects don't exist or new objects do exist it would handle it gracefully.

I feel like i might just be barking up the waaay wrong tree but to be fair I am not really a UI guy so it might not be surprising.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions