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

de.jwic.controls.DatePicker.js Maven / Gradle / Ivy

There is a newer version: 5.3.43
Show newest version
{
	
	afterUpdate: function(element){
		
		var inpElm = jQuery('#'+JWic.util.JQryEscape("${control.controlID}"));
		if (inpElm) {
			var datetimepicker = JWic.controls.DatePicker.initialize(inpElm,'${control.controlID}', '${control.locale.language}', '${control.dateFormat}',$control.buildJsonOptions(), '${control.currentTime}', '$control.field.id');
			#if($control.readonly)
				datetimepicker.addClass("x-readonly");
			#end
			#if($control.flagAsError)
				datetimepicker.addClass("x-error");
			#end
			
			#if($control.isIconTriggered())
				datepicker.datepicker("option",	"showOn", "button");
				datepicker.datepicker("option", "buttonImage", _contextPath+'/jwic/calendar/calendar.gif');
				datepicker.datepicker("option",	"buttonImageOnly", true);
				});
			#end
			

			#if($control.masterId)
//				var masterDateTextBox = jQuery('#' + JWic.util.JQryEscape('${control.masterId}'));
//				JWic.controls.DatePicker.masterSlave(masterDateTextBox,datetimepicker);
			#end
		}
		
	},
	
	destroy: function(element) {
		
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy