Drag and drop sort order in V2 Spark tables

Craig RosenbaumCraig Rosenbaum ✭✭✭✭
edited April 26, 2019 in Questions
We have a requirement to allow drag and drop rows to reorder a table. This has long been possible in V1 with a sortable snippet. Is this possible in Spark V2? I did not see the ability to add a custom component to the page to even try with javascript. 

Comments

  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited April 25, 2019
    Hi Craig --- you can't add a custom component (yet) in V2 --- the ability to add custom components is coming in a future release of V2, but is not available right now. You can add JavaScript to the page via Static Resources or Inline JavaScript, however.

    More to the point, though, in V2, we don't currently support applying jQuery sortable() to V2 Table components in the way that you would have done with V1. That said, the ability to drag and drop rows in a table to affect a change to a field such as sort order is certainly something that's on our radar.
  • Is there any update on this? can we sort rows in table?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!