Skip to content

Instantly share code, notes, and snippets.

@bgriggs1
Last active April 10, 2017 11:09
Show Gist options
  • Save bgriggs1/4988632 to your computer and use it in GitHub Desktop.
Save bgriggs1/4988632 to your computer and use it in GitHub Desktop.
Handling a view render event triggered by Knack
// change "view_1" to the view you want to listen for
$(document).on('knack-view-render.view_1', function(event, view, data) {
// handle view
// view is a json object of the view
// records is an array of json objects of the records currently visible
alert('listener for view: ' + view.key);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment