I was just playing with the new reflow/bss ecommerce and wanted to try to toggle from list view to card view. This is what I came up with and thought I would share.
HTML: (A button with the class ‘gridlist’)
<button class="btn btn-primary gridlist" type="button">
Vanilla JS
document.querySelector('.gridlist').onclick = function() {
document.querySelector('.reflow-product-list').classList.toggle('ref-cards');
}