Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get the total rows in the table, append it to the SSP result object
- function totalRows( test ) {
- var { dtParams, dtResult } = test;
- /*
- var dtParams = test.dtParams,
- dtResult = test.dtResult;
- */
- return new Promise( ( resolve, reject ) => {
- SSP.totalRows().then(( result ) => {
- dtResult.recordsTotal = result.dataValues.total_rows;
- resolve({ dtParams: dtParams ,dtResult: dtResult} );
- });
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment