wsssoftware/cakephp-datatables

View on GitHub
templates/bake/callbacks/bodies/init_complete.twig

Summary

Maintainability
Test Coverage
/**
 * {{ callback }} callback
 *
 * The content of this file will be putted inside of DataTables callback function {{ callbackFunction }}(...).
 * @link https://datatables.net/reference/option/initComplete
 *
 * To use a var that was set on params, put var name inside or double parentheses. Eg.: '{{ varName }}'.
 * @link https://twig.symfony.com/doc/3.x/templates.html#variables to learn more about variables usage.
 *
 * @var {DataTables.Settings} settings DataTables settings object.
 * @var {object} json JSON data retrieved from the server if the ajax option was set. Otherwise undefined.
 */