igf_tab.js
来自「一个JSF的商业组件的DEMO,infragistics-netadvantag」· JavaScript 代码 · 共 9 行
JS
9 行
// (c) 2007 Infragistics - Do NOT modify the content of this file
// Version 8.1.20081.1004
if(ig){if(!ig.tab){function IgWebTabPackage(){this.TYPE_TABVIEW="TabView";this.TYPE_TABITEM="TabItem";this.init=function(){ig.factory.addClass(ig.tab.TYPE_TABVIEW,IgTabView);ig.factory.addClass(ig.tab.TYPE_TABITEM,IgTabItem);};};ig.tab=new IgWebTabPackage();function IgTabView(e){this.IgUIComponent(e);};ig.augment(IgTabView,IgUIComponent);function IgTabItem(e){this.IgUIElement(e);};IgTabItem.prototype.applyClass=function(){var css=this.getDefaultClass();var cssLeft="igTabItemLeft";var cssRight="igTabItemRight";if(!this.isEnabled()){css=this.getDisabledClass();cssLeft="igTabItemDisabledLeft";cssRight="igTabItemDisabledRight";}
else{if(this.isSelected()){return;}
else{if(this.isHovered()){css=this.getHoverClass();cssLeft="igTabItemHoverLeft";cssRight="igTabItemHoverRight";}}}
if(this.elm.className!=cssRight){this.elm.className=cssRight;}
var leftTab=this.elm.previousSibling;var tabItem=this.elm.firstChild;if(leftTab.className!=cssLeft){leftTab.className=cssLeft;}
if(tabItem.className!=css){tabItem.className=css;}};IgTabItem.prototype.isSelected=function(){return this.getAttribute("oselected")=="true";};ig.augment(IgTabItem,IgUIElement);ig.tab.init();}}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?