inputEx - UneditableField Usage

UneditableField with HTML string

To format the value of the field with an html string, use the formatValue function (schould return a string):

new YAHOO.inputEx.UneditableField({ name: 'date', value: new Date(), parentEl: 'container1'});

UneditableField with DOM rendering

To render the value of the field with a DOM element (to add a behaviour), use the formatDom function (schould return a dom element):

new YAHOO.inputEx.UneditableField({ name: 'date', value: 'http://neyric.com/images/diabolo.png', visu: {visuType: 'func', func: function(value){ return inputEx.cn('img',{src:value},{border: '2px solid black'}); } }, parentEl: 'container2' });