Inserts a item or items before item with id=before
insert(before, items)
before |
string, id of item to insert before |
items |
object or array, item or array of items |
Returns undefined.
Description
New items will be inserted before item with id = before. If before is null, new items
will be appended at the end. The items argument can be either an object or array of objects. If it is an object it represents an item that will be added
to .items array. If it is an array then each element of the array will be treated as a separate item object.
If you have listview defined in the following way:
You can add items: