public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js
function (oAttr) {
            AccordionView.superclass.initAttributes.call(this, oAttr);
            var bAnimate = (YAHOO.env.modules.animation) ? true : false;    
            this.setAttributeConfig('id', {
                writeOnce: true,
                validator: function (value) {
                    return (/^[a-zA-Z][\w0-9\-_.:]*$/.test(value));
                },
                value: YUD.generateId(),
                method: function (value) {
                    this.get('element').id = value;
                }
            });
            this.setAttributeConfig('width', {
                value: '400px',
                method: function (value) {
                    this.setStyle('width', value);
                    }
                }
            );
            this.setAttributeConfig('animationSpeed', {
                value: 0.7
                }
            );
            this.setAttributeConfig('animate', {
                value: bAnimate,
                validator: YAHOO.lang.isBoolean
                }
            );          
            this.setAttributeConfig('collapsible', {
                value: false,
                validator: YAHOO.lang.isBoolean
                }
            );
            this.setAttributeConfig('expandable', {
                value: false,
                validator: YAHOO.lang.isBoolean
                }
            );
            this.setAttributeConfig('effect', {
                value: YAHOO.util.Easing.easeBoth,
                validator: YAHOO.lang.isString

                }
            );
            this.setAttributeConfig('hoverActivated', {
                    value: false,
                    validator: YAHOO.lang.isBoolean,
                    method: function (value) {
                            if (value) {
                                    YUE.on(this, 'mouseover', this._onMouseOver, this, true);                        
                            } else {
                                    YUE.removeListener(this, 'mouseover', this._onMouseOver);
                            }        
                    }
            });
            this.setAttributeConfig('_hoverTimeout', {
                value: 500,
                validator: YAHOO.lang.isInteger
                }
            );
        }
function (oAttr) {
            AccordionView.superclass.initAttributes.call(this, oAttr);
            var bAnimate = (YAHOO.env.modules.animation) ? true : false;    
            this.setAttributeConfig('id', {
                writeOnce: true,
                validator: function (value) {
                    return (/^[a-zA-Z][\w0-9\-_.:]*$/.test(value));
                },
                value: YUD.generateId(),
                method: function (value) {
                    this.get('element').id = value;
                }
            });
            this.setAttributeConfig('width', {
                value: '400px',
                method: function (value) {
                    this.setStyle('width', value);
                    }
                }
            );
            this.setAttributeConfig('animationSpeed', {
                value: 0.7
                }
            );
            this.setAttributeConfig('animate', {
                value: bAnimate,
                validator: YAHOO.lang.isBoolean
                }
            );          
            this.setAttributeConfig('collapsible', {
                value: false,
                validator: YAHOO.lang.isBoolean
                }
            );
            this.setAttributeConfig('expandable', {
                value: false,
                validator: YAHOO.lang.isBoolean
                }
            );
            this.setAttributeConfig('effect', {
                value: YAHOO.util.Easing.easeBoth,
                validator: YAHOO.lang.isString

                }
            );
            this.setAttributeConfig('hoverActivated', {
                    value: false,
                    validator: YAHOO.lang.isBoolean,
                    method: function (value) {
                            if (value) {
                                    YUE.on(this, 'mouseover', this._onMouseOver, this, true);                        
                            } else {
                                    YUE.removeListener(this, 'mouseover', this._onMouseOver);
                            }        
                    }
            });
            this.setAttributeConfig('_hoverTimeout', {
                value: 500,
                validator: YAHOO.lang.isInteger
                }
            );
        }
function ( oAttr ) { AccordionView . superclass . initAttributes . call ( this , oAttr ) ; var bAnimate = ( YAHOO . env . modules . animation ) ? true : false ; this . setAttributeConfig ( 'id' , { writeOnce : true , validator : function ( value ) { return ( / ^[a-zA-Z][\w0-9\-_.:]*$ / . test ( value ) ) ; } , value : YUD . generateId ( ) , method : function ( value ) { this . get ( 'element' ) . id = value ; } } ) ; this . setAttributeConfig ( 'width' , { value : '400px' , method : function ( value ) { this . setStyle ( 'width' , value ) ; } } ) ; this . setAttributeConfig ( 'animationSpeed' , { value : 0.7 } ) ; this . setAttributeConfig ( 'animate' , { value : bAnimate , validator : YAHOO . lang . isBoolean } ) ; this . setAttributeConfig ( 'collapsible' , { value : false , validator : YAHOO . lang . isBoolean } ) ; this . setAttributeConfig ( 'expandable' , { value : false , validator : YAHOO . lang . isBoolean } ) ; this . setAttributeConfig ( 'effect' , { value : YAHOO . util . Easing . easeBoth , validator : YAHOO . lang . isString } ) ; this . setAttributeConfig ( 'hoverActivated' , { value : false , validator : YAHOO . lang . isBoolean , method : function ( value ) { if ( value ) { YUE . on ( this , 'mouseover' , this . _onMouseOver , this , true ) ; } else { YUE . removeListener ( this , 'mouseover' , this . _onMouseOver ) ; } } } ) ; this . setAttributeConfig ( '_hoverTimeout' , { value : 500 , validator : YAHOO . lang . isInteger } ) ; }
Initialize attributes for the Accordion
@param {Object} oAttr attributes key map
@method initAttributes
Initialize attributes for the Accordion