Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

How to populate multiple columns in a list item

Hi. I understand that to add an item to a list I can
Tiggr('list').append('New item');
Tiggr('list').listview('refresh');
(or use Appery instead of Tiggr) but I have a grid in the list item and 5 columns all containing labels and 1 with an input field. How do I populate these ?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to populate multiple columns in a list item

Hello Bob,

It should be pretty easy something like this:
pre
Appery('mobilelabel_32').text('NewText');
Appery('mobilelistitem_15').listview('refresh');
/pre
where: 'mobilelabel_32' - is a label name that needs to be updated;
'mobilelistitem_15' - listItem component that will be updated;

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

How to populate multiple columns in a list item

Ok. But when do I do the append (and what do I append) and if that is an update how does it know which item in the list is to be changed ?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to populate multiple columns in a list item

It's a standart jQuery method (additional information you can check here)

the selector is defines what element will be modified
pre.append()/pre
Insert content, specified by the parameter, to the end of each element in the set of matched elements.

Return to “Issues”