Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Adding a list item to a list

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Adding a list item to a list

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

Return to “Issues”