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
Event | Description |
---|---|
knack-records-render.any | Triggered by all views |
knack-records-render.view_1 | Triggered by a single view specified by key |
Parameters
Parameter | Description |
---|---|
view | The view (JSON object) |
records | Array of the records currently visible (JSON objects) |
Updated about 4 years ago
What’s Next