chipmunk
chipmunk

Reputation: 213

Sencha Touch2: Add check box to itemTpl

Hi am new to Sencha touch2, am parsing url of json data and showing in list. How can i add check box for each listitem?

Upvotes: 1

Views: 1772

Answers (1)

msd
msd

Reputation: 121

Hi just add html to your template, try this:

itemTpl: '<input type="checkbox" id="myId" <tpl if="active">checked="checked"</tpl>/>{field from json data}',

Upvotes: 1

Related Questions