Custom Form Elements for mootools

group 

:: Custom Form Elements for mootools > group > cfe.module.fieldset.js (source view) 0.9.4
Filters
/**
 * @module group
 */

/**
 * enhances fieldsets
 *
 * @class fieldset
 * @namespace cfe.modules
 *
 * @requires generic
 * @extends cfe.generic
 *
 */
cfe.module.fieldset = new Class({
    
    Extends: cfe.generic,
    
    instance: 0,
    /**
     * Describes the type of this element
     * @property type
     * @type string
     */
    type: "Fieldset",

    /**
     * CSS Selector to fetch "original" HTMLElements for replacement with this module
     * @property selector
     * @type string
     */
    selector: "fieldset",
	
    buildWrapper: function()
    {
        this.a = this.options.replaces;
        this.setupWrapper();
        this.a.setStyle("cursor","default");
    },

    build: function()
    {
        this.a.setProperty("tabindex", 0);
    },

    clicked: function()
    {
        this.a.addClass("F");
        this.fireEvent("onClick");
    }
});
back to top | © 2007-2009 | custom form elements mediavrog project. | documentation build with YUI Doc from Yahoo!