public/javascripts/yui/datatable/datatable.js
function(elContainer) {
    // Validate container
    elContainer = Dom.get(elContainer);
    
    if(elContainer && elContainer.nodeName && (elContainer.nodeName.toLowerCase() == "div")) {
        // Destroy previous
        this._destroyContainerEl(elContainer);

        Dom.addClass(elContainer, DT.CLASS_DATATABLE);
        Ev.addListener(elContainer, "focus", this._onTableFocus, this);
        Ev.addListener(elContainer, "dblclick", this._onTableDblclick, this);
        this._elContainer = elContainer;
        
        var elMask = document.createElement("div");
        elMask.className = DT.CLASS_MASK;
        elMask.style.display = "none";
        this._elMask = elContainer.appendChild(elMask);
    }
}
function(elContainer) {
    // Validate container
    elContainer = Dom.get(elContainer);
    
    if(elContainer && elContainer.nodeName && (elContainer.nodeName.toLowerCase() == "div")) {
        // Destroy previous
        this._destroyContainerEl(elContainer);

        Dom.addClass(elContainer, DT.CLASS_DATATABLE);
        Ev.addListener(elContainer, "focus", this._onTableFocus, this);
        Ev.addListener(elContainer, "dblclick", this._onTableDblclick, this);
        this._elContainer = elContainer;
        
        var elMask = document.createElement("div");
        elMask.className = DT.CLASS_MASK;
        elMask.style.display = "none";
        this._elMask = elContainer.appendChild(elMask);
    }
}
function ( elContainer ) { // Validate container elContainer = Dom . get ( elContainer ) ; if ( elContainer && elContainer . nodeName && ( elContainer . nodeName . toLowerCase ( ) == "div" ) ) { // Destroy previous this . _destroyContainerEl ( elContainer ) ; Dom . addClass ( elContainer , DT . CLASS_DATATABLE ) ; Ev . addListener ( elContainer , "focus" , this . _onTableFocus , this ) ; Ev . addListener ( elContainer , "dblclick" , this . _onTableDblclick , this ) ; this . _elContainer = elContainer ; var elMask = document . createElement ( "div" ) ; elMask . className = DT . CLASS_MASK ; elMask . style . display = "none" ; this . _elMask = elContainer . appendChild ( elMask ) ; } }
Initializes the DataTable outer container element, including a mask.

@method _initContainerEl
@param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
@private
Initializes the DataTable outer container element including a mask .