Skip to content

Instantly share code, notes, and snippets.

@AntMooreWebDev
Last active October 30, 2018 14:57
Show Gist options
  • Select an option

  • Save AntMooreWebDev/115253eb71b5924bb38dec997cc79289 to your computer and use it in GitHub Desktop.

Select an option

Save AntMooreWebDev/115253eb71b5924bb38dec997cc79289 to your computer and use it in GitHub Desktop.
// Ensure you select the table for the grid in the element view on Chrome
var rowList = $($0).find('tr');
var elementList = "Id,Name\r\n";
$(rowList).each(function(i, el){
var thisRow = $(el);
elementList = elementList + thisRow.data('id') + ',' + thisRow.find('.list__item-title').html() + "\r\n";
});
console.log(elementList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment