inputEx Documentation Back to homepage

### inputEx Documentation > UneditableField.js 0.2.2

This is the source view for UneditableField.js

(function() { var inputEx = YAHOO.inputEx; /** * @class Create a uneditable field where you can stick the html you want * Added Options: * <ul> * <li>visu: inputEx visu type</li> * </ul> * @extends inputEx.Field * @constructor * @param {Object} options inputEx.Field options object */ inputEx.UneditableField = function(options) { inputEx.UneditableField.superclass.constructor.call(this,options); }; YAHOO.lang.extend(inputEx.UneditableField, inputEx.Field, /** * @scope inputEx.UneditableField.prototype */ { /** * Set the default values of the options * @param {Object} options Options object (inputEx inputParams) as passed to the constructor */ setOptions: function(options) { inputEx.UneditableField.superclass.setOptions.call(this,options); this.options.visu = options.visu; }, /** * Store the value and update the visu * @param {Any} val The value that will be sent to the visu * @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) */ setValue: function(val, sendUpdatedEvt) { this.value = val; inputEx.renderVisu(this.options.visu, val, this.fieldContainer); inputEx.UneditableField.superclass.setValue.call(this, val, sendUpdatedEvt); }, /** * Return the stored value * @return {Any} The previously stored value */ getValue: function() { return this.value; } }); /** * Register this class as "url" type */ inputEx.registerType("uneditable", inputEx.UneditableField); })();

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.