Page 1 of 1

Change Order of items in a jQuery Mobile List component.

Posted: Thu Dec 08, 2016 12:27 pm
by Terry Gilliver

Currently When you add a list component, items are added consecutively. I often would like to add extra items, but not necessarily at the end, or I may want to re-order the items.

Currently the only way to do this is to create the component from scratch or edit the html, which as we know will break the link with the visual editor.

I think it would be a nice feature to be able to re-order the list items after they have been added.


Change Order of items in a jQuery Mobile List component.

Posted: Tue Dec 13, 2016 7:54 am
by EJLD

Hi Terry, not too sure what you insert or like to re-order.
if you allow me to say something, I wld do it with JS by manipulating the array of data/objects received onSuccess from the service.
if you think this way may help, give me an example, I will try to come up with a short snippet.
Eric


Change Order of items in a jQuery Mobile List component.

Posted: Tue Dec 13, 2016 11:03 am
by Terry Gilliver

yes, I guess you could re-order them at run-time using javascript to manipulate the DOM. That's quite a good idea and I may do that in future, but it would be nice to be able to do it from Appery's development environment.

It was more of a suggestion to the development team to add to their 'wish list'

Thanks for your response though.