jeudi 14 juin 2018

Jquery based DateTime Picker change language

Im using laravel 5.6 and installed DateTime Picker i'm trying to change the language to Dutch now but i cant seem to find figure it out.

1.

    $(document).ready(function(){

    $(".pickdate").DateTimePicker({
        setLanguage: function(nl){
            language: "nl"
        }
    });

}); 

2.

    $(document).ready(function(){

    $(".pickdate").DateTimePicker("nl");

}); 

3.

$(document).ready(function(){

    $(".pickdate").DateTimePicker().setLanguage("nl");

}); 

It doesn't seem to take my parameters. I've installed it via NPM, so import via CDN is not what I am looking for.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire