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

faisalhilmi picture faisalhilmi  路  18Comments

FaZeRs picture FaZeRs  路  18Comments

jay-shah-rushiinfotech picture jay-shah-rushiinfotech  路  19Comments

baig772 picture baig772  路  14Comments

webwizard02 picture webwizard02  路  17Comments