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

nasirkhan picture nasirkhan  路  3Comments

techguydev picture techguydev  路  3Comments

ghost picture ghost  路  3Comments

jgatringer picture jgatringer  路  3Comments

alejandri picture alejandri  路  3Comments