default values for date time

default values for date time

aschippersaschippers Posts: 22Questions: 8Answers: 3

Hello,

I'm searching for a possibility to set some date time options globally.

For i18n, i can set global defaults, but is this also possible for the field types.

For example, something like this:

  $.extend( true, $.fn.DataTable.Editor.defaults, {
    fields: [
      type: 'datetime',
      opts: {
        showWeekNumber: true,
        firstDay: 1,
      }
    ]

  });

Which, by the way, is not working.

This question has an accepted answers - jump to answer

Answers

  • aschippersaschippers Posts: 22Questions: 8Answers: 3
    Answer ✓
      $.extend( true, $.fn.DataTable.Editor.DateTime.defaults, {
        showWeekNumber: true,
        firstDay: 1,
      });
    

    item can be closed

This discussion has been closed.