Giter VIP home page Giter VIP logo

Comments (4)

 avatar commented on July 1, 2024

Thanks for your thoughts on this. The data swap that RowReorder uses when the data is rows are reordered is fairly core to the software. You can tell it to use any data property in the table, although a sequence number is the most common. Perhaps there should be an option to have it not update any data property, but I don't see the benefit of that, since the ordering applied to the DataTable would just move your row back to where it should be in the table ordering. It would only be useful if sorting were disabled, but then you'd still want to update a data property (even if it is a hidden column).

from rowreorder.

MuellerMatthew avatar MuellerMatthew commented on July 1, 2024

Essentially, it would just add an event listener on the table sorting, so that whenever a table is sorted by a different column it would reset the sequence number of each row to whatever new row number the data is in the table.
Then if a user manually drags a row, it sets the sort to the sequence column, and does the normal row reorder data swap.

from rowreorder.

 avatar commented on July 1, 2024

Oh I see. This example combined with the ability added to RowReorder to not update data would do what you are looking for then.

from rowreorder.

MuellerMatthew avatar MuellerMatthew commented on July 1, 2024

Yes. Essentially I want a user to be able to use the sorting of the table as a jumping off point so they can customize their list faster without having to drag every item to where they want. I will have a pull request shortly to add the option.

from rowreorder.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.