omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
251 stars 113 forks source link

info option is missing #201

Closed barbuslex closed 3 years ago

barbuslex commented 3 years ago

Hi,

I have set in datatables.yaml :

datatables:
    options:
        info: false

So info options is not recognized by the bundle but correctly if i set it directly in javascript :

$('#datatable').initDataTables({{ datatable_settings(datatable) }}, { "info": false });

Is it possible to add it in the bundle ?

Thanks

curry684 commented 3 years ago

There is a philosophy there - we only allow serverside setting of options that make sense to have control of from the server side. info is a display option, and as such not supported. Setting it in the templates/JS is therefore the correct course of action.

I am aware that this philosophy can be considered flawed, and open to discussion on it, but it would have to be a wider discussion (info isn't the only option not supported).