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

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

{
	// Attach to events...
	afterUpdate: function(element) {
		
		var inpElm = jQuery('#'+JWic.util.JQryEscape("${control.controlID}"));
		if (inpElm) {
			JWic.controls.InputBoxControl.initialize(inpElm);
			#if($control.updateOnBlur)
				inpElm.bind('blur',function() {
						JWic.fireAction('$control.controlID', 'onBlur', '');
					}
				);
			#end
			#if($control.readonly)
				jQuery(inpElm).addClass("x-readonly");
			#end
			#if($control.flagAsError)
				jQuery(inpElm).addClass("x-error");
			#end
		}

	}, 
	
	destroy: function(element) {
		var inpElm =jQuery('#'+JWic.util.JQryEscape("${control.controlID}"));
		if (inpElm) {
			JWic.controls.InputBoxControl.destroy(inpElm);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy