Create a gist now

Instantly share code, notes, and snippets.

function materializeTables() {
document.querySelectorAll('table').forEach(function(table) {
table.classList.add('mdl-data-table', 'mdl-js-data-table');
table.querySelectorAll('th,td').forEach(function(cell) {
cell.classList.add('mdl-data-table__cell--non-numeric');
});
});
}
function materializeControls() {
materializeTextInputs();
materializeSelects();
materializeRadioButtons();
materializeCheckboxes();
materializeTables();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment