yesod-datatables-0.1.1: Yesod plugin for DataTables (jQuery grid plugin)

Safe HaskellNone

Yesod.DataTables.Reply

Description

DataTables reply formatting.

Synopsis

Documentation

data Reply Source

Container for holding the reply to DataTables jQuery plugin.

Constructors

Reply 

Fields

replyNumRecords :: Int

Total records, before filtering (i.e. the total number of records in the database).

replyNumDisplayRecords :: Int

Total records, after filtering (i.e. the total number of records after filtering has been applied - not just the number of records being returned in this result set).

replyRecords :: Value

An array of JSON objects, one for each record.

replyEcho :: Int

An unaltered copy of sEcho sent from the client side.

Instances

formatReply :: Reply -> ValueSource

Translates the reply object to a JSON value that DataTables javascript plugin expects.