Skip to content

Instantly share code, notes, and snippets.

@mshuffett
Last active January 18, 2018 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mshuffett/156a7e360ea90db7ddef27d7cd47af54 to your computer and use it in GitHub Desktop.
Save mshuffett/156a7e360ea90db7ddef27d7cd47af54 to your computer and use it in GitHub Desktop.
JQuery Shim to support row hovering in Dash
$(window).ready(function() {
$(document).arrive('.hover-row', function() {
$('.data-table > tbody > tr').hover(function() {
var rowNum = $(this).children('.row-num').text();
$(this).closest('.table-div').children('.hover-row').val(rowNum);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment