ExtJs2.0学习系列(6)--区域布局之Card Layout
来源:互联网 发布:mac安装盗版软件 编辑:程序博客网 时间:2024/05/24 06:31
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ExtJs2.0学习系列(6)--区域布局之Card布局 </title>
<link type="text/css" href="Ext/resources/css/ext-all.css" rel="stylesheet" />
<script type="text/javascript" src="Ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="Ext/ext-all.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var panels=new Ext.Panel({
renderTo:"CardLayout",
title:"CardLayout Demo",
width:300,
height:200,
layout:"card",
activeItem:0,
items:[
{title:"accordion1",html:"content1"},
{title:"accordion2",html:"content2"},
{title:"accordion3",html:"content3"},
{title:"accordion4",html:"content4"}
]
,
buttons:[
{text:"切换",handler:changeTab}
]
});
var i=1;
function changeTab()
{
panels.getLayout().setActiveItem(i++);
if(i>2)
i=0;
}
})
</script>
</head>
<body>
<div id="CardLayout"></div>
</body>
</html>
实现效果如下:
- ExtJs2.0学习系列(6)--区域布局之Card Layout
- ExtJs2.0学习系列(7)--区域布局之table layout
- ExtJs2.0学习系列(3)--区域布局之column布局
- ExtJs2.0学习系列(4)--区域布局之border布局
- ExtJs2.0学习系列(5)--区域布局之Accordion布局
- 《ExtJS2.0实用简明教程》之Border区域布局
- ext layout 之 card布局 使用示例
- ExtJS2.0实用简明教程——Card布局
- ExtJs2.0学习系列(4)--Ext.FormPanel之第一式
- ExtJs2.0学习系列(5)--Ext.FormPanel之第二式
- ExtJs2.0学习系列(4)--Ext.FormPanel之第一式
- ExtJs2.0学习系列(5)--Ext.FormPanel之第二式
- ExtJs2.0学习系列(9)--Ext.TabPanel之第一式
- ExtJs2.0学习系列(10)--Ext.TabPanel之第二式
- ExtJs2.0学习系列(12)--Ext.TreePanel之第一式
- ExtJs2.0学习系列(13)--Ext.TreePanel之第二式
- ExtJs2.0学习系列(12)--Ext.TreePanel之第一式
- ExtJs2.0学习系列--Ext.TreePanel之第一式
- 用Xfire发布Webservice应用(转载)
- 各种数据库对表名长度的限制
- window.open参数完全手册
- [asp.net]把gridview的数据导入excel
- 以架构师为目标?读程序员职业规划有感[转csdn]
- ExtJs2.0学习系列(6)--区域布局之Card Layout
- 让maven2编译时使用jdk1.5(5.0)的特性
- ORACLE中SQL取最后一条记录的几种方法
- 给你的C程序加上颜色
- 中序遍历二叉排序树:BinarySearchTree:Create a tree and InorderTree
- javaQQ群,欢迎你的加入
- 这是一个测试文档
- Android核心模块
- 窗口开启即全屏、最大化的几种方法