]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - jssource/src_files/include/javascript/yui3/build/datatable/datatable-min.js
Release 6.5.0
[Github/sugarcrm.git] / jssource / src_files / include / javascript / yui3 / build / datatable / datatable-min.js
1 /*
2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
5 version: 3.3.0
6 build: 3167
7 */
8 YUI.add("datatable-base",function(C){var W=C.Lang,G=W.isValue,g=C.Lang.substitute,D=C.Node,T=D.create,P=C.ClassNameManager.getClassName,Q="datatable",R="column",i="focus",l="keydown",H="mouseenter",O="mouseleave",K="mouseup",a="mousedown",d="click",V="dblclick",E=P(Q,"columns"),c=P(Q,"data"),B=P(Q,"msg"),L=P(Q,"liner"),f=P(Q,"first"),I=P(Q,"last"),U=P(Q,"even"),b=P(Q,"odd"),e="<table></table>",X="<col></col>",j='<thead class="'+E+'"></thead>',F='<tbody class="'+c+'"></tbody>',k='<th id="{id}" rowspan="{rowspan}" colspan="{colspan}" class="{classnames}" abbr="{abbr}"><div class="'+L+'">{value}</div></th>',h='<tr id="{id}"></tr>',A='<td headers="{headers}" class="{classnames}"><div class="'+L+'">{value}</div></td>',J="{value}",N='<tbody class="'+B+'"></tbody>';function M(Y){M.superclass.constructor.apply(this,arguments);}C.mix(M,{NAME:"column",ATTRS:{id:{valueFn:"_defaultId",readOnly:true},key:{valueFn:"_defaultKey"},field:{valueFn:"_defaultField"},label:{valueFn:"_defaultLabel"},children:{value:null},abbr:{value:""},classnames:{readOnly:true,getter:"_getClassnames"},formatter:{},sortable:{value:false},editor:{},width:{},resizeable:{},minimized:{},minWidth:{},maxAutoWidth:{}}});C.extend(M,C.Widget,{_defaultId:function(){return C.guid();},_defaultKey:function(Y){return Y||C.guid();},_defaultField:function(Y){return Y||this.get("key");},_defaultLabel:function(Y){return Y||this.get("key");},_afterAbbrChange:function(Y){this._uiSetAbbr(Y.newVal);},keyIndex:null,headers:null,colSpan:1,rowSpan:1,parent:null,thNode:null,initializer:function(Y){},destructor:function(){},_getClassnames:function(){return C.ClassNameManager.getClassName(R,this.get("id"));},syncUI:function(){this._uiSetAbbr(this.get("abbr"));},_uiSetAbbr:function(Y){this.thNode.set("abbr",Y);}});C.Column=M;function Z(Y){Z.superclass.constructor.apply(this,arguments);}C.mix(Z,{NAME:"columnset",ATTRS:{definitions:{setter:"_setDefinitions"}}});C.extend(Z,C.Base,{_setDefinitions:function(Y){return C.clone(Y);},tree:null,idHash:null,keyHash:null,keys:null,initializer:function(){var Y=[],q={},r={},p=[],o=this.get("definitions"),m=this;function n(z,y,x){var u=0,t=y.length,w,v,s;z++;if(!Y[z]){Y[z]=[];}for(;u<t;++u){w=y[u];w=W.isString(w)?{key:w}:w;v=new C.Column(w);w.yuiColumnId=v.get("id");q[v.get("id")]=v;r[v.get("key")]=v;if(x){v.parent=x;}if(W.isArray(w.children)){s=w.children;v._set("children",s);m._setColSpans(v,w);m._cascadePropertiesToChildren(v,s);if(!Y[z+1]){Y[z+1]=[];}n(z,s,v);}else{v.keyIndex=p.length;p.push(v);}Y[z].push(v);}z--;}n(-1,o);this.tree=Y;this.idHash=q;this.keyHash=r;this.keys=p;this._setRowSpans();this._setHeaders();},destructor:function(){},_cascadePropertiesToChildren:function(o,m){var n=0,Y=m.length,p;for(;n<Y;++n){p=m[n];if(o.get("className")&&(p.className===undefined)){p.className=o.get("className");}if(o.get("editor")&&(p.editor===undefined)){p.editor=o.get("editor");}if(o.get("formatter")&&(p.formatter===undefined)){p.formatter=o.get("formatter");}if(o.get("resizeable")&&(p.resizeable===undefined)){p.resizeable=o.get("resizeable");}if(o.get("sortable")&&(p.sortable===undefined)){p.sortable=o.get("sortable");}if(o.get("hidden")){p.hidden=true;}if(o.get("width")&&(p.width===undefined)){p.width=o.get("width");}if(o.get("minWidth")&&(p.minWidth===undefined)){p.minWidth=o.get("minWidth");}if(o.get("maxAutoWidth")&&(p.maxAutoWidth===undefined)){p.maxAutoWidth=o.get("maxAutoWidth");}}},_setColSpans:function(n,m){var o=0;function Y(r){var s=r.children,q=0,p=s.length;for(;q<p;++q){if(W.isArray(s[q].children)){Y(s[q]);}else{o++;}}}Y(m);n.colSpan=o;},_setRowSpans:function(){function Y(o){var q=1,s,r,n,u;function t(x,w){w=w||1;var v=0,m=x.length,p;for(;v<m;++v){p=x[v];if(W.isArray(p.children)){w++;t(p.children,w);w--;}else{if(p.get&&W.isArray(p.get("children"))){w++;t(p.get("children"),w);w--;}else{if(w>q){q=w;}}}}}for(n=0;n<o.length;n++){s=o[n];t(s);for(u=0;u<s.length;u++){r=s[u];if(!W.isArray(r.get("children"))){r.rowSpan=q;}}q=1;}}Y(this.tree);},_setHeaders:function(){var q,o,n=this.keys,m=0,Y=n.length;function p(s,r){s.push(r.get("id"));if(r.parent){p(s,r.parent);}}for(;m<Y;++m){q=[];o=n[m];p(q,o);o.headers=q.reverse().join(" ");}},getColumn:function(){}});C.Columnset=Z;function S(Y){S.superclass.constructor.apply(this,arguments);}C.mix(S,{NAME:"dataTable",ATTRS:{columnset:{setter:"_setColumnset"},recordset:{value:new C.Recordset({records:[]}),setter:"_setRecordset"},summary:{},caption:{},thValueTemplate:{value:J},tdValueTemplate:{value:J},trTemplate:{value:h}},HTML_PARSER:{}});C.extend(S,C.Widget,{thTemplate:k,tdTemplate:A,_theadNode:null,_tbodyNode:null,_msgNode:null,_setColumnset:function(Y){return W.isArray(Y)?new C.Columnset({definitions:Y}):Y;},_afterColumnsetChange:function(Y){if(this.get("rendered")){this._uiSetColumnset(Y.newVal);}},_setRecordset:function(Y){if(W.isArray(Y)){Y=new C.Recordset({records:Y});}Y.addTarget(this);return Y;},_afterRecordsetChange:function(Y){if(this.get("rendered")){this._uiSetRecordset(Y.newVal);}},_afterSummaryChange:function(Y){if(this.get("rendered")){this._uiSetSummary(Y.newVal);}},_afterCaptionChange:function(Y){if(this.get("rendered")){this._uiSetCaption(Y.newVal);}},initializer:function(Y){this.after("columnsetChange",this._afterColumnsetChange);this.after("recordsetChange",this._afterRecordsetChange);this.after("summaryChange",this._afterSummaryChange);this.after("captionChange",this._afterCaptionChange);},destructor:function(){this.get("recordset").removeTarget(this);},renderUI:function(){return(this._addTableNode(this.get("contentBox"))&&this._addColgroupNode(this._tableNode)&&this._addTheadNode(this._tableNode)&&this._addTbodyNode(this._tableNode)&&this._addMessageNode(this._tableNode)&&this._addCaptionNode(this._tableNode));},_addTableNode:function(Y){if(!this._tableNode){this._tableNode=Y.appendChild(T(e));}return this._tableNode;},_addColgroupNode:function(n){var Y=this.get("columnset").keys.length,m=0,o=["<colgroup>"];for(;m<Y;++m){o.push(X);}o.push("</colgroup>");this._colgroupNode=n.insertBefore(T(o.join("")),n.get("firstChild"));
9 return this._colgroupNode;},_addTheadNode:function(Y){if(Y){this._theadNode=Y.insertBefore(T(j),this._colgroupNode.next());return this._theadNode;}},_addTbodyNode:function(Y){this._tbodyNode=Y.appendChild(T(F));return this._tbodyNode;},_addMessageNode:function(Y){this._msgNode=Y.insertBefore(T(N),this._tbodyNode);return this._msgNode;},_addCaptionNode:function(Y){this._captionNode=Y.createCaption();return this._captionNode;},bindUI:function(){var m="thead."+E+">tr>th",n="tbody."+c+">tr>td",Y="tbody."+B+">tr>td";},delegate:function(Y){if(Y==="dblclick"){this.get("boundingBox").delegate.apply(this.get("boundingBox"),arguments);}else{this.get("contentBox").delegate.apply(this.get("contentBox"),arguments);}},syncUI:function(){this._uiSetColumnset(this.get("columnset"));this._uiSetRecordset(this.get("recordset"));this._uiSetSummary(this.get("summary"));this._uiSetCaption(this.get("caption"));},_uiSetSummary:function(Y){Y=G(Y)?Y:"";this._tableNode.set("summary",Y);},_uiSetCaption:function(Y){Y=G(Y)?Y:"";this._captionNode.setContent(Y);},_uiSetColumnset:function(p){var m=p.tree,r=this._theadNode,n=0,Y=m.length,o=r.get("parentNode"),q=r.next();r.remove();r.get("children").remove(true);for(;n<Y;++n){this._addTheadTrNode({thead:r,columns:m[n]},(n===0),(n===Y-1));}o.insert(r,q);},_addTheadTrNode:function(n,Y,m){n.tr=this._createTheadTrNode(n,Y,m);this._attachTheadTrNode(n);},_createTheadTrNode:function(t,m,s){var r=T(g(this.get("trTemplate"),t)),p=0,n=t.columns,Y=n.length,q;if(m){r.addClass(f);}if(s){r.addClass(I);}for(;p<Y;++p){q=n[p];this._addTheadThNode({value:q.get("label"),column:q,tr:r});}return r;},_attachTheadTrNode:function(Y){Y.thead.appendChild(Y.tr);},_addTheadThNode:function(Y){Y.th=this._createTheadThNode(Y);this._attachTheadThNode(Y);Y.column.thNode=Y.th;},_createTheadThNode:function(m){var Y=m.column;m.id=Y.get("id");m.colspan=Y.colSpan;m.rowspan=Y.rowSpan;m.abbr=Y.get("abbr");m.classnames=Y.get("classnames");m.value=g(this.get("thValueTemplate"),m);return T(g(this.thTemplate,m));},_attachTheadThNode:function(Y){Y.tr.appendChild(Y.th);},_uiSetRecordset:function(m){var p=0,Y=m.getLength(),t=this._tbodyNode,q=t.get("parentNode"),r=t.next(),s={},n;t.remove();t=null;n=this._addTbodyNode(this._tableNode);n.remove();this._tbodyNode=n;s.tbody=n;for(;p<Y;++p){s.record=m.getRecord(p);s.rowindex=p;this._addTbodyTrNode(s);}q.insert(this._tbodyNode,r);},_addTbodyTrNode:function(n){var m=n.tbody,Y=n.record;n.tr=m.one("#"+Y.get("id"))||this._createTbodyTrNode(n);this._attachTbodyTrNode(n);},_createTbodyTrNode:function(q){var p=T(g(this.get("trTemplate"),{id:q.record.get("id")})),m=0,n=this.get("columnset").keys,Y=n.length;q.tr=p;for(;m<Y;++m){q.column=n[m];this._addTbodyTdNode(q);}return p;},_attachTbodyTrNode:function(q){var m=q.tbody,p=q.tr,Y=q.rowindex,n=m.get("children").item(Y)||null,r=(Y%2===0);if(r){p.replaceClass(b,U);}else{p.replaceClass(U,b);}m.insertBefore(p,n);},_addTbodyTdNode:function(Y){Y.td=this._createTbodyTdNode(Y);this._attachTbodyTdNode(Y);},_createTbodyTdNode:function(m){var Y=m.column;m.headers=Y.headers;m.classnames=Y.get("classnames");m.value=this.formatDataCell(m);return T(g(this.tdTemplate,m));},_attachTbodyTdNode:function(Y){Y.tr.appendChild(Y.td);},formatDataCell:function(p){var Y=p.record,n=p.column,m=n.get("formatter");p.data=Y.get("data");p.value=Y.getValue(n.get("field"));return W.isString(m)?g(m,p):W.isFunction(m)?m.call(this,p):g(this.get("tdValueTemplate"),p);}});C.namespace("DataTable").Base=S;},"3.3.0",{requires:["recordset-base","widget","substitute","event-mouseenter"]});YUI.add("datatable-datasource",function(B){function A(){A.superclass.constructor.apply(this,arguments);}B.mix(A,{NS:"datasource",NAME:"dataTableDataSource",ATTRS:{datasource:{setter:"_setDataSource"},initialRequest:{setter:"_setInitialRequest"}}});B.extend(A,B.Plugin.Base,{_setDataSource:function(C){return C||new B.DataSource.Local(C);},_setInitialRequest:function(C){},initializer:function(C){if(!B.Lang.isUndefined(C.initialRequest)){this.load({request:C.initialRequest});}},load:function(C){C=C||{};C.request=C.request||this.get("initialRequest");C.callback=C.callback||{success:B.bind(this.onDataReturnInitializeTable,this),failure:B.bind(this.onDataReturnInitializeTable,this),argument:this.get("host").get("state")};var D=(C.datasource||this.get("datasource"));if(D){D.sendRequest(C);}},onDataReturnInitializeTable:function(C){this.get("host").set("recordset",new B.Recordset({records:C.response.results}));}});B.namespace("Plugin").DataTableDataSource=A;},"3.3.0",{requires:["datatable-base","plugin","datasource-local"]});YUI.add("datatable-sort",function(G){var F=G.ClassNameManager.getClassName,H="datatable",B="column",D="asc",C="desc",A='<a class="{link_class}" title="{link_title}" href="{link_href}">{value}</a>';function E(){E.superclass.constructor.apply(this,arguments);}G.mix(E,{NS:"sort",NAME:"dataTableSort",ATTRS:{trigger:{value:{event:"click",selector:"th"},writeOnce:"initOnly"},lastSortedBy:{setter:"_setLastSortedBy",lazyAdd:false},template:{value:A}}});G.extend(E,G.Plugin.Base,{initializer:function(J){var K=this.get("host"),I=this.get("trigger");K.get("recordset").plug(G.Plugin.RecordsetSort,{dt:K});K.get("recordset").sort.addTarget(K);this.doBefore("_createTheadThNode",this._beforeCreateTheadThNode);this.doBefore("_attachTheadThNode",this._beforeAttachTheadThNode);this.doBefore("_attachTbodyTdNode",this._beforeAttachTbodyTdNode);K.delegate(I.event,G.bind(this._onEventSortColumn,this),I.selector);K.after("recordsetSort:sort",function(){this._uiSetRecordset(this.get("recordset"));});this.on("lastSortedByChange",function(L){this._uiSetLastSortedBy(L.prevVal,L.newVal,K);});if(K.get("rendered")){K._uiSetColumnset(K.get("columnset"));this._uiSetLastSortedBy(null,this.get("lastSortedBy"),K);}},_setLastSortedBy:function(I){if(G.Lang.isString(I)){return{key:I,dir:"asc",notdir:"desc"};}else{if(I&&I.key){if(I.dir==="desc"){return{key:I.key,dir:"desc",notdir:"asc"};}else{return{key:I.key,dir:"asc",notdir:"desc"};
10 }}else{return null;}}},_uiSetLastSortedBy:function(M,J,I){var U=M&&M.key,N=M&&M.dir,T=J&&J.key,K=J&&J.dir,Q=I.get("columnset"),S=Q.keyHash[U],O=Q.keyHash[T],R=I._tbodyNode,L,P;if(S){S.thNode.removeClass(F(H,N));L=R.all("."+F(B,S.get("id")));L.removeClass(F(H,N));}if(O){O.thNode.addClass(F(H,K));P=R.all("."+F(B,O.get("id")));P.addClass(F(H,K));}},_beforeCreateTheadThNode:function(I){if(I.column.get("sortable")){I.value=G.substitute(this.get("template"),{link_class:I.link_class||"",link_title:"title",link_href:"#",value:I.value});}},_beforeAttachTheadThNode:function(M){var L=this.get("lastSortedBy"),K=L&&L.key,I=L&&L.dir,J=L&&L.notdir;if(M.column.get("sortable")){M.th.addClass(F(H,"sortable"));}if(K&&(K===M.column.get("key"))){M.th.replaceClass(F(H,J),F(H,I));}},_beforeAttachTbodyTdNode:function(M){var L=this.get("lastSortedBy"),K=L&&L.key,I=L&&L.dir,J=L&&L.notdir;if(M.column.get("sortable")){M.td.addClass(F(H,"sortable"));}if(K&&(K===M.column.get("key"))){M.td.replaceClass(F(H,J),F(H,I));}},_onEventSortColumn:function(N){N.halt();var L=this.get("host"),K=L.get("columnset").idHash[N.currentTarget.get("id")],J=K.get("key"),M=K.get("field"),O=this.get("lastSortedBy"),I=(O&&O.key===J&&O.dir===D)?C:D,P=K.get("sortFn");if(K.get("sortable")){L.get("recordset").sort.sort(M,I===C,P);this.set("lastSortedBy",{key:J,dir:I});}}});G.namespace("Plugin").DataTableSort=E;},"3.3.0",{lang:["en"],requires:["datatable-base","plugin","recordset-sort"]});YUI.add("datatable-scroll",function(B){var J=B.Node,I=B.Lang,L=B.UA,E=B.ClassNameManager.getClassName,K="datatable",A=E(K,"hd"),D=E(K,"bd"),H=E(K,"scrollable"),G='<div class="'+A+'"></div>',C='<div class="'+D+'"></div>',F="<table></table>";function M(){M.superclass.constructor.apply(this,arguments);}B.mix(M,{NS:"scroll",NAME:"dataTableScroll",ATTRS:{width:{value:undefined,writeOnce:"initOnly"},height:{value:undefined,writeOnce:"initOnly"},_scroll:{valueFn:function(){var N=this.get("width"),O=this.get("height");if(N&&O){return"xy";}else{if(N){return"x";}else{if(O){return"y";}else{return null;}}}}},COLOR_COLUMNFILLER:{value:"#f2f2f2",validator:I.isString,setter:function(N){if(this._headerContainerNode){this._headerContainerNode.setStyle("backgroundColor",N);}}}}});B.extend(M,B.Plugin.Base,{_parentTableNode:null,_parentTheadNode:null,_parentTbodyNode:null,_parentMsgNode:null,_parentContainer:null,_bodyContainerNode:null,_headerContainerNode:null,initializer:function(N){var O=this.get("host");this._parentContainer=O.get("contentBox");this._parentContainer.addClass(H);this._setUpNodes();},_setUpNodes:function(){this.afterHostMethod("_addTableNode",this._setUpParentTableNode);this.afterHostMethod("_addTheadNode",this._setUpParentTheadNode);this.afterHostMethod("_addTbodyNode",this._setUpParentTbodyNode);this.afterHostMethod("_addMessageNode",this._setUpParentMessageNode);this.afterHostMethod("renderUI",this.renderUI);this.afterHostMethod("syncUI",this.syncUI);if(this.get("_scroll")!=="x"){this.afterHostMethod("_attachTheadThNode",this._attachTheadThNode);this.afterHostMethod("_attachTbodyTdNode",this._attachTbodyTdNode);}},_setUpParentTableNode:function(){this._parentTableNode=this.get("host")._tableNode;},_setUpParentTheadNode:function(){this._parentTheadNode=this.get("host")._theadNode;},_setUpParentTbodyNode:function(){this._parentTbodyNode=this.get("host")._tbodyNode;},_setUpParentMessageNode:function(){this._parentMsgNode=this.get("host")._msgNode;},renderUI:function(){this._createBodyContainer();this._createHeaderContainer();this._setContentBoxDimensions();},syncUI:function(){this._removeCaptionNode();this._syncWidths();this._syncScroll();},_removeCaptionNode:function(){this.get("host")._captionNode.remove();},_syncWidths:function(){var O=J.all("#"+this._parentContainer.get("id")+" .yui3-datatable-hd table thead th"),P=J.one("#"+this._parentContainer.get("id")+" .yui3-datatable-bd table .yui3-datatable-data").get("firstChild").get("children"),Q,T,V,S,U,R,N=L.ie;for(Q=0,T=O.size();Q<T;Q++){U=O.item(Q).get("firstChild");R=P.item(Q).get("firstChild");if(!N){V=U.get("clientWidth");S=P.item(Q).get("clientWidth");}else{V=U.get("offsetWidth");S=P.item(Q).get("offsetWidth");}if(V>S){R.setStyle("width",(V-20+"px"));}else{if(S>V){U.setStyle("width",(S-20+"px"));R.setStyle("width",(S-20+"px"));}}}},_attachTheadThNode:function(O){var N=O.column.get("width")||"auto";if(N!=="auto"){O.th.get("firstChild").setStyles({width:N,overflow:"hidden"});}return O;},_attachTbodyTdNode:function(O){var N=O.column.get("width")||"auto";if(N!=="auto"){O.td.get("firstChild").setStyles({width:N,overflow:"hidden"});}return O;},_createBodyContainer:function(){var O=J.create(C),N=B.bind("_onScroll",this);this._bodyContainerNode=O;this._setStylesForTbody();O.appendChild(this._parentTableNode);this._parentContainer.appendChild(O);O.on("scroll",N);},_createHeaderContainer:function(){var O=J.create(G),N=J.create(F);this._headerContainerNode=O;this._setStylesForThead();N.appendChild(this._parentTheadNode);O.appendChild(N);this._parentContainer.prepend(O);},_setStylesForTbody:function(){var O=this.get("_scroll"),N=this.get("width")||"",Q=this.get("height")||"",P=this._bodyContainerNode,R={width:"",height:Q};if(O==="x"){R.overflowY="hidden";R.width=N;}else{if(O==="y"){R.overflowX="hidden";}else{if(O==="xy"){R.width=N;}else{R.overflowX="hidden";R.overflowY="hidden";R.width=N;}}}P.setStyles(R);return P;},_setStylesForThead:function(){var N=this.get("width")||"",O=this._headerContainerNode;O.setStyles({"width":N,"overflow":"hidden"});},_setContentBoxDimensions:function(){if(this.get("_scroll")==="y"||(!this.get("width"))){this._parentContainer.setStyle("width","auto");}},_onScroll:function(){this._headerContainerNode.set("scrollLeft",this._bodyContainerNode.get("scrollLeft"));},_syncScroll:function(){this._syncScrollX();this._syncScrollY();this._syncScrollOverhang();if(L.opera){this._headerContainerNode.set("scrollLeft",this._bodyContainerNode.get("scrollLeft"));if(!this.get("width")){document.body.style+="";
11 }}},_syncScrollY:function(){var N=this._parentTbodyNode,P=this._bodyContainerNode,O;if(!this.get("width")){O=(P.get("scrollHeight")>P.get("clientHeight"))?(N.get("parentNode").get("clientWidth")+19)+"px":(N.get("parentNode").get("clientWidth")+2)+"px";this._parentContainer.setStyle("width",O);}},_syncScrollX:function(){var N=this._parentTbodyNode,P=this._bodyContainerNode,O;this._headerContainerNode.set("scrollLeft",this._bodyContainerNode.get("scrollLeft"));if(!this.get("height")&&(L.ie)){O=(P.get("scrollWidth")>P.get("offsetWidth"))?(N.get("parentNode").get("offsetHeight")+18)+"px":N.get("parentNode").get("offsetHeight")+"px";P.setStyle("height",O);}if(N.get("rows").length===0){this._parentMsgNode.get("parentNode").setStyle("width",this._parentTheadNode.get("parentNode").get("offsetWidth")+"px");}else{this._parentMsgNode.get("parentNode").setStyle("width","");}},_syncScrollOverhang:function(){var N=this._bodyContainerNode,O=1;if((N.get("scrollHeight")>N.get("clientHeight"))||(N.get("scrollWidth")>N.get("clientWidth"))){O=18;}this._setOverhangValue(O);if(L.ie!==0&&this.get("_scroll")==="y"&&this._bodyContainerNode.get("scrollHeight")>this._bodyContainerNode.get("offsetHeight")){this._headerContainerNode.setStyle("width",this._parentContainer.get("width"));}},_setOverhangValue:function(O){var Q=this.get("host"),S=Q.get("columnset").get("definitions"),N=S.length,R=O+"px solid "+this.get("COLOR_COLUMNFILLER"),P=J.all("#"+this._parentContainer.get("id")+" ."+A+" table thead th");P.item(N-1).setStyle("borderRight",R);}});B.namespace("Plugin").DataTableScroll=M;},"3.3.0",{requires:["datatable-base","plugin","stylesheet"]});YUI.add("datatable",function(A){},"3.3.0",{use:["datatable-base","datatable-datasource","datatable-sort","datatable-scroll"]});