Created
June 22, 2016 18:57
-
-
Save alansemenov/bef8e20c305c04fcb94146ba10dac3e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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