Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Miso Dataset - return elements of a dataset in a HTML list for viewing
Miso.DataView.prototype.printDVAsList = function() {
var outStr;
if (this.length > 0) {
outStr = "<ul>";
var colNames = this.columnNames();
this.each(
function (row){
outStr = outStr + "<li>";
for (var i = 0; i < colNames.length; i++) {
outStr = outStr + " <b>" + colNames[i] + "</b> - " + row[colNames[i]];
};
outStr = outStr + "</li>";
}
);
outStr = outStr + "</ul>";
}
return outStr;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.