Laravel-datatables: Parametr columnDef not work

Created on 13 Nov 2018  路  1Comment  路  Source: yajra/laravel-datatables

This seem not working:


                    ->parameters([
                        'columnDefs' => [
                            'targets' => -1,
                            'className' => 'text-right'
                        ]
                    ])

Any idea how to do this?

question

Most helpful comment

I think it should be array of arrays.

                    ->parameters([
                        'columnDefs' => [
                            ['targets' => [-1], 'className' => 'text-right']
                        ]
                    ])

>All comments

I think it should be array of arrays.

                    ->parameters([
                        'columnDefs' => [
                            ['targets' => [-1], 'className' => 'text-right']
                        ]
                    ])
Was this page helpful?
0 / 5 - 0 ratings

Related issues

SGarridoDev picture SGarridoDev  路  3Comments

Abdulhmid picture Abdulhmid  路  3Comments

FilipeBorges1993 picture FilipeBorges1993  路  3Comments

Mopster picture Mopster  路  3Comments

jackrsantana picture jackrsantana  路  3Comments