I usually just emith the markup I want manually - the more conmplex frameworks like dataTables seem like unnecessary overhead to me.
Here's a snippet of code from the SPArrangeChoices function that shows you how I emit the choices in multiple rows based on the value provided in perRow. It's so easy to do this way that I'm not sure a framework adds much value.
Here's a snippet of code from the SPArrangeChoices function that shows you how I emit the choices in multiple rows based on the value provided in perRow. It's so easy to do this way that I'm not sure a framework adds much value.
out = "<TR>";
for (i = 0; i < columnOptions.length; i++) {
out += columnOptions[i];
// If we've already got perRow columnOptions in the row, close off the row
if ((i + 1) % opt.perRow === 0) {
out += "</TR><TR>";
}
}
out += "</TR>";
M.