5 Replies Latest reply on May 25, 2016 10:15 PM by Laubender

    How to do a Drag-and-Drop UI dialog?

    chosking Level 1

      Hi all,


      I'm new to InDesign scripting and I'm trying to figure out how I could create a drag and drop UI dialog, something like https://github.com/marceljuenemann/angular-drag-and-drop-lists or https://rubaxa.github.io/Sortable/ . Say I want a list of people you can include as authors, and I want you to be able to drag the ones you want from the left to the right, rearrange them in the preferred order, and hit "ok" and indesign will, say, update all the footers.


      I'd use the checkboxes option, except that I need people to be able to rearrange the order. Obviously InDesign can do something like this because the content collector is a drag-and-drop UI and you can rearrange the order of things in it, I just haven't been able to find any info on creating UI like this!


      I'm very confused by the fact there's a dialog object, but also Script UI, but also I can apparently create UI with flex (but maybe that's old fashioned?), but also there are other ways too?


      Any pointers or leads would be appreciated. Thanks!