Im using List js on html list with checkboxes and trying to populate it with values object as in :
var values = [
{
id: 12,
action: 'a',
...
},
{
id: 13,
action: 'b',
...
}
];
HTML :
<div id="users">
<ul class="list">
<li>
<span class="id"></span>
<span class="action"></span >
<input class="required" type="checkbox">Required
</li>
</ul>
</div>
and initializing as in :
new List('users', options, values);
How to make it work?
Just to clearify Im missing how to complete values object and how to define option object so that i could init the check state of the checkboxes initially.
Aucun commentaire:
Enregistrer un commentaire