Skip to content

Instantly share code, notes, and snippets.

@bcruddy
Created June 13, 2017 12:18
Show Gist options
  • Save bcruddy/99993c9d41487a3acc3d7dd3fe248d26 to your computer and use it in GitHub Desktop.
Save bcruddy/99993c9d41487a3acc3d7dd3fe248d26 to your computer and use it in GitHub Desktop.
const rows = document.querySelectorAll('.ui-grid-row');
for (let i = 0; i < rows.length; i++) {
const zIndex = rows.length - i;
const row = rows[i]
row.style.zIndex = zIndex;
row.style.position = 'relative';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment