public/javascripts/inputex/build/inputex.js
function (options) {
			
			var i, length;
			
			inputEx.RadioField.superclass.setOptions.call(this, options);
			
			// Display mode
			this.options.display = options.display === "vertically" ? "vertically" : "inline"; // default "inline"
			
			// Classname
			this.options.className = options.className ? options.className : 'inputEx-Field inputEx-RadioField';
			if (this.options.display === "vertically") {
				this.options.className +=  ' inputEx-RadioField-Vertically';
			}
			
			// Choices creation
			
			// Retro-compatibility with old pattern (DEPRECATED since 2010-06-30)
			if (lang.isArray(options.values)) {
				
				this.options.choices = [];
				
				for (i = 0, length = options.values.length; i < length; i += 1) {
					this.options.choices.push({ value: options.values[i], label: options.choices[i] });
				}
			
			// New pattern to define choices
			} else {
				
				this.options.choices = options.choices; // ['val1','val2'] or [{ value: 'val1', label: '1st Choice' }, etc.]
				
			}
			
			if (lang.isUndefined(options.allowAny) || options.allowAny === false ) {
				this.options.allowAny = false;
			} else {
				this.options.allowAny = {};
				if (lang.isArray(options.allowAny.separators)) { this.options.allowAny.separators = options.allowAny.separators;}
				this.options.allowAny.validator = lang.isFunction(options.allowAny.validator) ? options.allowAny.validator : function (val) {return true;};
				this.options.allowAny.value = !lang.isUndefined(options.allowAny.value) ? options.allowAny.value : "";
				this.options.allowAny.field = lang.isUndefined(options.allowAny.field) ? { type: "string", value: this.options.allowAny.value } : options.allowAny.field;
			}
			
		}
function (options) {
			
			var i, length;
			
			inputEx.RadioField.superclass.setOptions.call(this, options);
			
			// Display mode
			this.options.display = options.display === "vertically" ? "vertically" : "inline"; // default "inline"
			
			// Classname
			this.options.className = options.className ? options.className : 'inputEx-Field inputEx-RadioField';
			if (this.options.display === "vertically") {
				this.options.className +=  ' inputEx-RadioField-Vertically';
			}
			
			// Choices creation
			
			// Retro-compatibility with old pattern (DEPRECATED since 2010-06-30)
			if (lang.isArray(options.values)) {
				
				this.options.choices = [];
				
				for (i = 0, length = options.values.length; i < length; i += 1) {
					this.options.choices.push({ value: options.values[i], label: options.choices[i] });
				}
			
			// New pattern to define choices
			} else {
				
				this.options.choices = options.choices; // ['val1','val2'] or [{ value: 'val1', label: '1st Choice' }, etc.]
				
			}
			
			if (lang.isUndefined(options.allowAny) || options.allowAny === false ) {
				this.options.allowAny = false;
			} else {
				this.options.allowAny = {};
				if (lang.isArray(options.allowAny.separators)) { this.options.allowAny.separators = options.allowAny.separators;}
				this.options.allowAny.validator = lang.isFunction(options.allowAny.validator) ? options.allowAny.validator : function (val) {return true;};
				this.options.allowAny.value = !lang.isUndefined(options.allowAny.value) ? options.allowAny.value : "";
				this.options.allowAny.field = lang.isUndefined(options.allowAny.field) ? { type: "string", value: this.options.allowAny.value } : options.allowAny.field;
			}
			
		}
function ( options ) { var i , length ; inputEx . RadioField . superclass . setOptions . call ( this , options ) ; // Display mode this . options . display = options . display === "vertically" ? "vertically" : "inline" ; // default "inline" // Classname this . options . className = options . className ? options . className : 'inputEx-Field inputEx-RadioField' ; if ( this . options . display === "vertically" ) { this . options . className += ' inputEx-RadioField-Vertically' ; } // Choices creation // Retro-compatibility with old pattern (DEPRECATED since 2010-06-30) if ( lang . isArray ( options . values ) ) { this . options . choices = [ ] ; for ( i = 0 , length = options . values . length ; i < length ; i += 1 ) { this . options . choices . push ( { value : options . values [ i ] , label : options . choices [ i ] } ) ; } // New pattern to define choices } else { this . options . choices = options . choices ; // ['val1','val2'] or [{ value: 'val1', label: '1st Choice' }, etc.] } if ( lang . isUndefined ( options . allowAny ) || options . allowAny === false ) { this . options . allowAny = false ; } else { this . options . allowAny = { } ; if ( lang . isArray ( options . allowAny . separators ) ) { this . options . allowAny . separators = options . allowAny . separators ; } this . options . allowAny . validator = lang . isFunction ( options . allowAny . validator ) ? options . allowAny . validator : function ( val ) { return true ; } ; this . options . allowAny . value = ! lang . isUndefined ( options . allowAny . value ) ? options . allowAny . value : "" ; this . options . allowAny . field = lang . isUndefined ( options . allowAny . field ) ? { type : "string" , value : this . options . allowAny . value } : options . allowAny . field ; } }
Adds the Radio button specific options
@param {Object} options Options object as passed to the constructor
Adds the Radio button specific options