Override Component Defaults

It is possible to adjust the default component settings as you can see in the following example. To ensure the default settings are overridden in the proper sequence, do so in a callback function that is triggered by the beforeready.clique.dom event.


// Override default datepicker settings
Clique.on('beforeready.clique.dom', function(){
    $.extend(Clique.components.datepicker.prototype.defaults, {
        mobile : true,
        format: 'DD.MM.YYYY'