All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.jwic.controls.mobile.MDatePicker.static.js Maven / Gradle / Ivy

There is a newer version: 5.3.43
Show newest version
JWic.mobile.DatePicker = (function($, JWic, undefined){
    var blurHandler = function(){
        JWic.fireAction($(this).data('id'), 'close', $(this).val());
    };

    return {
        initialize : function DatePickerInitialize (control, options) {
            var input = control.find('input');
            input.data('id', options.controlID);
            input.attr('placeholder', options.dateFormat);

            input.datepicker({
                dateFormat : JWic.util.convertToJqueryDateFormat(options.dateFormat),
                onSelect : options.updateOnBlur ? blurHandler : undefined,
                disabled : !options.enabled
            });
        },
        destroy : function DatePickerDestroy(control){
            control.datepicker('destroy');
        }
    }
}(jQuery, JWic));




© 2015 - 2025 Weber Informatics LLC | Privacy Policy