Records Render

  • Triggered when the records have rendered in a table/search/list
    • Both for the initial render and also for each change with sorting/filtering/pagination that may update the displayed record set
// change "view_1" to the view you want to listen for
$(document).on('knack-records-render.view_1', function(event, view, records) {
  // Do something after the records render
  alert('listener for records, # of records is: ' + records.length);
});

Events

EventDescription
knack-records-render.anyTriggered by all views
knack-records-render.view_1Triggered by a single view specified by key

Parameters

ParameterDescription
viewThe view (JSON object)
recordsArray of the records currently visible (JSON objects)

What’s Next