Extjs 4.0 Tab页
1、JSON代码
Ext.MyTabs=Ext.extend(Ext.TabPanel ,{ xtype:"tabpanel", activeTab:2, width:694, height:571, initComponent: function(){ this.items=[ { xtype:"panel", title:"学生", autoScroll:false, width:703, items:[ { xtype:"grid", title:"我的表格", columns:[ { header:"学号", sortable:true, resizable:true, dataIndex:"data1", width:100 }, { header:"姓名", sortable:true, resizable:true, dataIndex:"data2", width:100 }, { header:"性别", sortable:true, resizable:true, dataIndex:"data3", width:100 }, { header:"年龄", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"电话", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"住址", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"QQ", sortable:true, resizable:true, dataIndex:"", width:100 } ] } ] }, { xtype:"panel", title:"教师", items:[ { xtype:"grid", title:"我的表格", columns:[ { header:"工号", sortable:true, resizable:true, dataIndex:"data1", width:100 }, { header:"姓名", sortable:true, resizable:true, dataIndex:"data2", width:100 }, { header:"年龄", sortable:true, resizable:true, dataIndex:"data3", width:100 }, { header:"性别", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"电话", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"电话", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"QQ", sortable:true, resizable:true, dataIndex:"", width:100 } ] } ] }, { xtype:"panel", title:"课程", items:[ { xtype:"grid", title:"我的表格", columns:[ { header:"编号", sortable:true, resizable:true, dataIndex:"data1", width:100 }, { header:"名称", sortable:true, resizable:true, dataIndex:"data2", width:100 }, { header:"教授教师", sortable:true, resizable:true, dataIndex:"data3", width:100 }, { header:"选课人数", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"上课时间", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"分数", sortable:true, resizable:true, dataIndex:"", width:100 }, { header:"学生学号", sortable:true, resizable:true, dataIndex:"", width:100 } ] } ] } ] Ext.MyTabs.superclass.initComponent.call(this); } })
2、执行结果
(1)学生Tab页
(2)教师Tab页
(3)课程Tab页
Extjs 4.0 Tab页的更多相关文章
- 使用CSS和jQuery实现tab页
使用jquery来操作DOM是极大的方便和简单,这儿只是简单的用一个使用css和jquery来实现的tab页来简单介绍一些jQuery的一些方便使用的方法,下面是html文件: <!DOCTYP ...
- 自制tab页
没事自己弄着玩,写了个tab页.不要当真.想看就看看.希望相互学习. 效果预览:html源码: <!DOCTYPE html> <html lang="en"&g ...
- Android下实现tab页个人比较推崇的方法
使用fragment实现tab页的效果: 三个页面是单独的三个Fragment 主Activity的实现: package com.hsx.tab; import android.os.Bundle; ...
- ECSHOP:首页实现显示子分类商品,并实现点击Tab页切换分类商品
例子:首页实现显示子分类商品,并实现点击Tab页切换分类商品(非AJAX) 开始: 1. 打开调试开关 文件地址:include/cls_template.php 找到 : functi ...
- 使用原生js与jQuery分别实现一个简单的tab页签
tab页签通常适用于空间有限而内容较多同时兼顾页面美观度不给用户一种信息过量视觉疲劳的情形.使用面非常广,下面我们用两种方法简单实现之. 首先,构建页面元素.页签的可点击部分我们通常用列表来承载,包括 ...
- chrome浏览器tab页内存占用变大,网站变慢为哪般?
问题概述: 公司做的是BS应用. 之前我们的后台服务器程序是带状态的,用ehcache存储登录状态:这两天被我改成了redis存储,应用本身不再存储登录状态. 然后自测,我在测试某个很耗时间的网页操作 ...
- JS组件系列——基于Bootstrap Ace模板的菜单Tab页效果优化
前言:之前发表过一篇 JS组件系列——基于Bootstrap Ace模板的菜单和Tab页效果分享(你值得拥有) ,收到很多园友的反馈,当然也包括很多诟病,因为上篇只是将功能实现了,很多细节都没有处理 ...
- tab页切换
做了一个tab页切换.点击不同tab,显示对应的内容信息 如图 =================HTML===================== <!doctype html public ...
- bootstrap tabs 默认tab页的使用方式
HTML中引入tabs如下: <ul class="nav"> <li><a href="#a" tt="A.html& ...
随机推荐
- IDEA精髓快捷键
删除一行:Ctrl+X 快速查找:Ctrl+F 打开文件目录结构: Ctrl+F12 可以把代码包在一个块内:Ctrl+Alt+T 替换文本:Ctrl+R, Alt+Shift+Up/Down,上/下 ...
- [PHP] Phalcon操作示范
这篇内容将对下列操作进行示范: Insert.Select.Update.Calculation.Transaction.models advanced.dev-tools.cookies [ Ins ...
- wpf timePicker 时间选择控件
wpf里有日期选择控件,但没有时间选择控件.其他地方也有类似的,但效果并不太好,而且复杂.所以就自己写了个.参考codeproject上的. 分两部分. 第一部分是.cs文件.也就是control控件 ...
- Matplotlib学习笔记(一)
原 matplotlib学习笔记 参考:Python数据科学入门教程 Python3.6.1 jupyter notebook .caret, .dropup > .btn > .ca ...
- C#查询XML解决“需要命名空间管理器”问题
在查询xml时有时会遇到带有前缀的xml,例如:"<ows:Keyword></ows:Keyword>" 这时像往常一样查询就会报错,类似于"需 ...
- char数组中除去某个元素
/* 本程序说明: char数组中除去某个元素(其实就是strcpy源码的变形) */ #include <iostream> #include <cassert> #incl ...
- Python中Template使用的一个小技巧
Python中Template是string中的一个类,可以将字符串的格式固定下来,重复利用. from string import Template s = Template("there ...
- Windows下Nginx的配置及配置文件部分介绍
一.在官网下载 nginx的Windows版本,官网下载:http://nginx.org/download/ 选择你自己想要的版本下载,解压 nginx(例如nginx-1.6.3) 包到你的win ...
- Halcon一日一练:CAD类型的相关操作
大很多场合,需要在视觉程序中导入CAD文档,比如,在3C行业,需要对手机外壳进行CNC加工,或者点胶操作,此时,需要获取产品的各个点的数据.如果将CAD直接导入,就会大的减少编程工作量,同时也能达到很 ...
- nf共享
实验环境是两台Centos6.8 客户端是192.168.3.218 服务端是192.168.3.219 首先配置服务端 1 安装包 用yum安装需要的服务包(两边都安装) yum install n ...