"ColumnControl – remove dt-right class from date formatted by moment.js

"ColumnControl – remove dt-right class from date formatted by moment.js

spownspown Posts: 13Questions: 5Answers: 0

Link to test case: https://live.datatables.net/notomuja/
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

How can I reset className dt-right on date col with moment.js renderer?

DataTable.type('datetime', 'className', '');
DataTable.type('date', 'className', '');

Answers

  • spownspown Posts: 13Questions: 5Answers: 0

    Solved – you need to manually set the column type. I’m not sure why it doesn’t work without it.

     type: 'datetime',
    
Sign In or Register to comment.