Last active
December 13, 2015 22:59
-
-
Save bgriggs1/4988743 to your computer and use it in GitHub Desktop.
Handling a records render event triggered by Knack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// change "view_1" to the view you want to listen for | |
$(document).on('knack-records-render.view_1', function(event, view, records) { | |
// handle scene | |
// view is a json object of the view | |
// records is an array of json objects of the records currently visible | |
alert('listener for records, # of records is: ' + records.length); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment