How to change options of the Date Picker Plugin

Home Forums Porto Admin – Responsive HTML5 Template FAQ’s How to change options of the Date Picker Plugin

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10006792
    Support
    Keymaster

    Let’s say you want to change the language of the date picker to spanish:

    1) Add the locale file in the HTML

    2) Change the options:

    To change the format, you can just set it like this:

    <input type="text" data-plugin-datepicker data-plugin-options='{"format": "yy/mm/dd"}' class="form-control">

    Or change the default settings:
    (assets/javascripts/theme-custom.js)

    $.extend(theme.PluginDatePicker.defaults, {
        format: "yy/mm/dd" 
    });

    Available Options:
    http://bootstrap-datepicker.readthedocs.org/en/release/options.html


Viewing 1 post (of 1 total)

This topic is marked as "RESOLVED" and can not rceive new replies.