Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Feature: mData

Compare
Choose a tag to compare
@cnizzardini cnizzardini released this 02 Jul 19:46
· 33 commits to master since this release

New in v1.2.0 is support for mData. When I originally wrote this component I didn't realize that dataTables supported strings for indexes (such as aData.User.name instead of aData[1]). This functionality is off by default (for now). To enable this parameter set your mData properties in your JS code (https://datatables.net/usage/columns) and in your server side code set DataTable->mDataProp = true just before calling getResponse.

$this->DataTable->mDataProp = true;
$this->DataTable->getResponse();