Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
tabs-example.js
Package: ext-3.1.0.zip [view]
Upload User: dawnssy
Upload Date: 2022-08-06
Package Size: 9345k
Code Size: 2k
Category:
JavaScript
Development Platform:
JavaScript
- /*! * Ext JS Library 3.1.0 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ Ext.onReady(function(){
- // basic tabs 1, built from existing content
- var tabs = new Ext.TabPanel({
- renderTo: 'tabs1',
- width:450,
- activeTab: 0,
- frame:true,
- defaults:{autoHeight: true},
- items:[
- {contentEl:'script', title: 'Short Text'},
- {contentEl:'markup', title: 'Long Text'}
- ]
- });
- // second tabs built from JS
- var tabs2 = new Ext.TabPanel({
- renderTo: document.body,
- activeTab: 0,
- width:600,
- height:250,
- plain:true,
- defaults:{autoScroll: true},
- items:[{
- title: 'Normal Tab',
- html: "My content was added during construction."
- },{
- title: 'Ajax Tab 1',
- autoLoad:'ajax1.htm'
- },{
- title: 'Ajax Tab 2',
- autoLoad: {url: 'ajax2.htm', params: 'foo=bar&wtf=1'}
- },{
- title: 'Event Tab',
- listeners: {activate: handleActivate},
- html: "I am tab 4's content. I also have an event listener attached."
- },{
- title: 'Disabled Tab',
- disabled:true,
- html: "Can't see me cause I'm disabled"
- }
- ]
- });
- function handleActivate(tab){
- alert(tab.title + ' was activated.');
- }
- });