server side script for rowID

server side script for rowID

tomishtomish Posts: 17Questions: 11Answers: 0

Hi, I would like to know what the $row in the function argument refers to in the server side script below. Thank you!

  $columns = array(
      array(
         'db' => 'id',
         'dt' => 'DT_RowId',
         'formatter' => function( $d, $row ) {
            // Technically a DOM id cannot start with an integer, so we prefix
            // a string. This can also be useful if you have multiple tables
            // to ensure that the id is unique with a different prefix
            return 'row_'.$d;
This discussion has been closed.