Page 1 of 1

Adding a list item to a list

Posted: Sat Dec 22, 2012 10:04 am
by Joe Bohen

I am attempting to add a list item to an existing list using:

Tiggr('mylist').append('New item');
Tiggr( 'mylist' ).listview('refresh');

This appends 'New item' to list item one. How do I add a fully structured list item?

Image


Adding a list item to a list

Posted: Sat Dec 22, 2012 10:14 am
by Joe Bohen

Hi,

Ignore this found the solution:

Tiggr('mylist').append(
$('').append(
$('a rel="nofollow"').attr('href','/messages').append(
$('span').attr('class', 'tab').append("Message center")
)));
Tiggr( 'mylist' ).listview('refresh');/span/a