a MediatorData object
the current page index
the current page size
Applies sorting to the given mediator data, by creating a copy and sorting it.
a MediatorData object
field name to be sorted by
current sort direction
Determines whether the given object is a valid MediatorData
instance.
It only returns true, if
data
fieldtotal
fieldthe object to check against
true, if the object is a valid MediatorData
object
This function attempts to sort and paginate the received mediator data, with the given parameters.
the received data array
the currently selected column
"asc"
, "desc"
or ""
the current page the user is on
the given page size by the user
Turns an array into a MediatorData object. The full array will be used for the data field and its length for the total field.
a raw data array
Generated using TypeDoc
Applies pagination to the given mediator data, by slicing the data array. The total field will remain unchanged