inputEx Documentation Back to homepage

### inputEx Documentation > PairField.js 0.2.2

This is the source view for PairField.js

(function() { var inputEx = YAHOO.inputEx; /** * @class A meta field to put 2 fields on the same line * @extends inputEx.Field * @constructor * @param {Object} options Added options: * <ul> * <li>leftFieldOptions: the left field type definition object (same as groups)</li> * <li>rightFieldOptions: the right field type definition object (same as groups)</li> * </ul> */ inputEx.PairField = function(options) { options.fields = [options.leftFieldOptions || {}, options.rightFieldOptions || {}]; options.separators = [false, " : ", false]; inputEx.PairField.superclass.constructor.call(this, options); }; YAHOO.lang.extend( inputEx.PairField, inputEx.CombineField); /** * Register this class as "pair" type */ inputEx.registerType("pair", inputEx.PairField); })();

Copyright (c) 2007-2009 Eric Abouaf. All rights reserved.
Generated by JsDoc Toolkit 2.0.0 on Wed, 04 Mar 2009 15:41:30 GMT using neyricjslibs-template.