Julio, Funnily stumbled on the same notion myself last night. I've worked up a niceish sample here:
https://jsfiddle.net/34Lv6try/68/ So it's possible without too much hassle using JQuery Think I'll build be a widget out that fiddle ;-). Regards, Bernd. On Wednesday, 21 March 2018 23:14:54 UTC+11, Julio Biason wrote: > > Hi Bernd, > > A bit of this "k anbd drag lines up and down to reposition them" is done > by jQuery UI, in its "Draggable" functionality: > https://jqueryui.com/draggable/#sortable > > Not sure if that helps, though, 'cause you could provide functionality to > reorder using plain JS, just reordering divs around moving the DOM around. > > On Wed, Mar 21, 2018 at 6:54 AM, Bernd Wechner <bernd....@gmail.com > <javascript:>> wrote: > >> Hmmm, my next problem. >> >> I envisage a widget which is kind of like a HTML textarea, but basically >> each line would hold the name of a field say, and I'd like a user to be >> able to order the lines, not change the text. Basically click anbd drag >> lines up and down to reposition them. >> >> I've poked around for HTML widgets for a bit now and find my main >> handicap is I'm not even sure how to describe this in terse search terms. >> >> I know I've seen such widgets in practice - I didn't invent the idea ;-) >> - but have till now never needed one and suddenly I'm left wondering if >> there is one out there somewhere, and/or how I'd go about finding one. No >> real desire to try and build one with javascript right now, not least given >> I'm confident it exists already and I just don't know what it's called, how >> to describe it well or find it and well, DRY, I don't like spending my time >> recreating widgets that exist already. Not a priority. >> >> Does anyone here have any experience? Places tom look, terms to use in >> searching for one? >> >> Regards, >> >> Bernd. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users...@googlegroups.com <javascript:>. >> To post to this group, send email to django...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/5ce7a37d-c5c1-4460-84a9-cb8974a86a6a%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/5ce7a37d-c5c1-4460-84a9-cb8974a86a6a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Julio Biason*, Sofware Engineer > *AZION* | Deliver. Accelerate. Protect. > Office: +55 51 3083 8101 | Mobile: +55 51 *99907 0554* > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bd2c8441-a230-4908-81ec-0742730ef1f4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.