phoenix_datatables v0.1.0 PhoenixDatatables.Response
Provides a Payload constructor.
Link to this section Summary
Functions
Construct the PhoenixDatatables.Response.Payload
based on the constituent data
Link to this section Functions
Link to this function
new(data, draw, total_entries, filtered_entries)
Construct the PhoenixDatatables.Response.Payload
based on the constituent data:
:data
- A list of maps representing the query results.:recordsTotal
- The number of records available before client’s requested filters are applied.:recordsFiltered
- The number of records available after client’s requested filters are applied.:draw
- The draw counter received from the client is echoed back to distinguish multiple responses.