The DataTables plugin has an extensive API (see: http://datatables.net/ref), but this module doesn't implement all those options, and it won't also make sense to include all of them. However, it should be possible to give the user the option to include any other option manually. I've created a patch that makes this option available for columns.

The users have the possibility to enter a setting option for each column manually in JSON format, e.g {"sType":"string"}. So that, for example, users can set the sorting of a column to "string" or some other custom sorting type (plugin), which they could include in their template_preprocess_datatables_view implementations.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Elin Yordanov’s picture

And here's the patch I've created. As said, this patch makes it possible to add an extra column option manually in JSON format.

dqd’s picture

Assigned: Elin Yordanov » Unassigned
Issue summary: View changes
Status: Needs review » Closed (outdated)

We are on 7.x 2.x so I would say this issue can be closed for now and reopened with changed code version option if somebody wants to report it for 2.x. or D8.

Elin feel free to join D8 camp for feature implementations, I would love to see you in the issues over there.