public/javascripts/yui/datatable/datatable.js
function() {
    if(this._elContainer) {
        YAHOO.util.Event.purgeElement(this._elContainer, true);
        this._elContainer.innerHTML = "";
    }

    // Render Cell Editor container element as first child of body
    var elContainer = document.createElement("div");
    elContainer.id = this.getId() + "-container"; // Needed for tracking blur event
    elContainer.style.display = "none";
    elContainer.tabIndex = 0;
    elContainer.className = DT.CLASS_EDITOR;
    document.body.insertBefore(elContainer, document.body.firstChild);
    this._elContainer = elContainer;
    
    // Handle ESC key
    Ev.addListener(elContainer, "keydown", function(e, oSelf) {
        // ESC cancels Cell Editor
        if((e.keyCode == 27)) {
            var target = Ev.getTarget(e);
            // workaround for Mac FF3 bug that disabled clicks when ESC hit when
            // select is open. [bug 2273056]
            if (target.nodeName && target.nodeName.toLowerCase() === 'select') {
                target.blur();
            }
            oSelf.cancel();
        }
        // Pass through event
        oSelf.fireEvent("keydownEvent", {editor:this, event:e});
    }, this);
    
    this.renderForm();

    // Show Save/Cancel buttons
    if(!this.disableBtns) {
        this.renderBtns();
    }
    
    this.doAfterRender();
}
function() {
    if(this._elContainer) {
        YAHOO.util.Event.purgeElement(this._elContainer, true);
        this._elContainer.innerHTML = "";
    }

    // Render Cell Editor container element as first child of body
    var elContainer = document.createElement("div");
    elContainer.id = this.getId() + "-container"; // Needed for tracking blur event
    elContainer.style.display = "none";
    elContainer.tabIndex = 0;
    elContainer.className = DT.CLASS_EDITOR;
    document.body.insertBefore(elContainer, document.body.firstChild);
    this._elContainer = elContainer;
    
    // Handle ESC key
    Ev.addListener(elContainer, "keydown", function(e, oSelf) {
        // ESC cancels Cell Editor
        if((e.keyCode == 27)) {
            var target = Ev.getTarget(e);
            // workaround for Mac FF3 bug that disabled clicks when ESC hit when
            // select is open. [bug 2273056]
            if (target.nodeName && target.nodeName.toLowerCase() === 'select') {
                target.blur();
            }
            oSelf.cancel();
        }
        // Pass through event
        oSelf.fireEvent("keydownEvent", {editor:this, event:e});
    }, this);
    
    this.renderForm();

    // Show Save/Cancel buttons
    if(!this.disableBtns) {
        this.renderBtns();
    }
    
    this.doAfterRender();
}
function ( ) { if ( this . _elContainer ) { YAHOO . util . Event . purgeElement ( this . _elContainer , true ) ; this . _elContainer . innerHTML = "" ; } // Render Cell Editor container element as first child of body var elContainer = document . createElement ( "div" ) ; elContainer . id = this . getId ( ) + "-container" ; // Needed for tracking blur event elContainer . style . display = "none" ; elContainer . tabIndex = 0 ; elContainer . className = DT . CLASS_EDITOR ; document . body . insertBefore ( elContainer , document . body . firstChild ) ; this . _elContainer = elContainer ; // Handle ESC key Ev . addListener ( elContainer , "keydown" , function ( e , oSelf ) { // ESC cancels Cell Editor if ( ( e . keyCode == 27 ) ) { var target = Ev . getTarget ( e ) ; // workaround for Mac FF3 bug that disabled clicks when ESC hit when // select is open. [bug 2273056] if ( target . nodeName && target . nodeName . toLowerCase ( ) === 'select' ) { target . blur ( ) ; } oSelf . cancel ( ) ; } // Pass through event oSelf . fireEvent ( "keydownEvent" , { editor : this , event : e } ) ; } , this ) ; this . renderForm ( ) ; // Show Save/Cancel buttons if ( ! this . disableBtns ) { this . renderBtns ( ) ; } this . doAfterRender ( ) ; }
Renders DOM elements and attaches event listeners.

@method render
Renders DOM elements and attaches event listeners .