I'm using a YUI DataTable with a checkbox column like this:
var myColumnDefs = [
{key:"check", label:'', formatter:"checkbox"},
{other columns...}
];
How can I iterate over all the rows that have been checked?
UPDATE
Here is my current work-around:
YUI().use("node", function(Y) {
var records = myDataTable.getRecordSet().getRecords();
for (i=0; i < records.length; i++) {
// navigate to each individual input check box with YUI3 DOM selection
if Y.one('#' + records[i].getId() + ' td div.yui-dt-liner input.yui-dt-checkbox').get('checked'){
// checkbox is checked
}
}
}
This uses the YUI2 Datatable and the YUI3 selector interface.