Skip to content

Instantly share code, notes, and snippets.

@codenamejason
Last active July 26, 2017 19:28
Show Gist options
  • Save codenamejason/2e7fe0860e39a029d9307c8c633c3fdf to your computer and use it in GitHub Desktop.
Save codenamejason/2e7fe0860e39a029d9307c8c633c3fdf to your computer and use it in GitHub Desktop.
<tr data-bind="css: {rowAlt: $data.isActive() && ($index() % 2 == 1), rowInactive: $data.isActive() == false}">
/*
Using ko-hidden will stop your div from flashing on the screen prior to page load
*/
class="ko-hidden" data-bind="css: { hidden: false }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment