Drag and drop sort order in V2 Spark tables

Craig Rosenbaum
Craig 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. 


  • Zach McElrath
    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?
  • Hi @Skuidified can you share more information on what you mean by sorting?

    • You can currently sort table rows based on the values in a column.
    • Users cannot currently drag and drop table columns or rows to rearrange them. Is this something you're interested in?

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!