New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How translate render in View using Datatable Service? #557
Labels
Comments
I tried pass parameter on this way, but not work
Any idea please... |
I think you need to use array on the language param like: public function html()
{
return $this->builder()
->columns([
'id',
'name',
'actions',
])
->parameters([
'dom' => 'Bfrtip',
'order' => [ [0, 'desc'] ],
'buttons' => ['csv', 'excel'],
'language' => ['url => '//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Spanish.json']
]);
} |
Thanks Yajra idol !! work fine in this way: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I using this great package, when implement service render in te view with this line and Work fine.
{!! $dataTable->table([ 'id' => 'datatable', 'class' => 'table table-bordered]) !!}
But I want add more options like this javascript (not using service example)
For example languague to Spanish. I know adding this line via javascript works.
"language": {
"url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Spanish.json"
}
But how and where add this lines options using Service Implementation?
The text was updated successfully, but these errors were encountered: