Datatable icon indicating copy to clipboard operation
Datatable copied to clipboard

Call to undefined method OpenSkill\Datatable\Datatable::table()

Open UnderDogg opened this issue 7 years ago • 0 comments

Laravel version 5.2

Guys, I don't know if this is related to /Chumper/Datatable/pull/375 or /Chumper/Datatable/pull/372 (and /ladybirdweb/faveo-helpdesk/issues/85) but I'm having troubles with the table() function with openskill datatables. This code in my view:


{!! Datatable::table()   
      ->addColumn($columns)
      ->setUrl(url('api/products/'))      
      ->setOptions('sPaginationType', 'bootstrap')
      ->setOptions('bFilter', false)      
      ->setOptions('bAutoWidth', false)      
      //->setOptions('aoColumns', [[ "sWidth"=> "15%" ], [ "sWidth"=> "35%" ]])
      ->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[3]]])
      ->render('datatable') !!}

(and that's straight from invoiceninja application) gives the error in the title. "chumper/datatable": "dev-develop#04ef2bf" is working properly, so probably not merged yet into openskill datatables.

UnderDogg avatar Jun 17 '17 20:06 UnderDogg