javascript - How can remove ListItem from ListSection in appcelerator -
i'm building app appcelerator show list view items. i'm implementing delete method remove list single items.
so have create event on listview. method this:
function listitemclick(e){ var riga = listofitems[e.itemindex]; _db.sign_to_delete(riga.get("id")); $.elementslist.sections[0].deleteitemsat(e.itemindex,1); }
so code works, because can remove items db, element not deleted in list. if try refresh layout manually, can see list never delete's item. how can fixed it?
Comments
Post a Comment