Search code examples
datatablesjquery-ui-datepickeryadcf

yadcf - range date filter - jquery-ui datepicker


is possible to set in this datepicker weeks starts on Monday?

Here is a fiddle to explain this.

The second column (date) is a range date and when you try to select start date in the filter the weeks always start on Sunday.

Thanks in advance.

Solution

  • You should use the filter_plugin_options of yadcf in order to pass the third party plugin its init options, in this case the following will do

    {   
        column_number: 1,
        filter_type: 'range_date',
        filter_plugin_options: {
            firstDay: 1
        }
    }
    

    See working jsfiddle and read related answer

    Always bet on yadcf