Skip to content

Instantly share code, notes, and snippets.

@jennschiffer
Last active December 22, 2015 05:48
Show Gist options
  • Save jennschiffer/6426123 to your computer and use it in GitHub Desktop.
Save jennschiffer/6426123 to your computer and use it in GitHub Desktop.
scrollers anywhere call
// $gridRegular = a jsgrid table
var $outerScroller = $gridRegular.closest('.inner');
$gridRegular.scrollersAnywhere({
scrollerLocation : {
element : $outerScroller.parent(),
placeWhere : 'before',
},
scrollerID : 'top-scroll-' + gridRegularID,
innerWidth : $gridRegular.width(),
outerWidth : '100%',
nativeScrollerLocation : $outerScroller,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment